- Fixed ViewToken and BlockToken inline vars

This commit is contained in:
Dave Mc Nicoll committed 2020-11-27 11:32:01 -05:00
1 parent 082bdd4ad3
commit 82eca2e520
7 files changed
+37 -39

No files matched your search

+2 -2
View File
@@ -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;
}
}