mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Display the default placeholder content if there is no put tag for the placeholder
This commit is contained in:
parent
219f1ff8f7
commit
d4bc164fb2
@ -200,7 +200,7 @@ class Extension extends Twig_Extension
|
||||
public function displayBlock($name, $default = null)
|
||||
{
|
||||
if (($result = Block::placeholder($name)) === null)
|
||||
return null;
|
||||
return $default;
|
||||
|
||||
$result = str_replace('<!-- X_OCTOBER_DEFAULT_BLOCK_CONTENT -->', trim($default), $result);
|
||||
return $result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user