- Fixed ViewToken and BlockToken inline vars
This commit is contained in:
1 parent
082bdd4ad3
commit
82eca2e520
7 files changed
+37
-39
No files matched your search
@@ -23,7 +23,7 @@ class TitleExtension implements Extension {
|
||||
return "<?php echo title($arguments) ?>";
|
||||
}
|
||||
|
||||
public function handleTitle(? string $set = null) : ? string
|
||||
public function handleTitle(? string $set = null, ...$arguments) : ? string
|
||||
{
|
||||
if ( $set === null ) {
|
||||
return $this->title;
|
||||
@@ -31,7 +31,7 @@ class TitleExtension implements Extension {
|
||||
else {
|
||||
# Fixed a bug where template inheritance was rewriting title
|
||||
if ( empty($this->title) ) {
|
||||
$this->title = $set;
|
||||
$this->title = $arguments ? sprintf($set, ...$arguments) : $set;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user