mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
Fix #488 extra hyphen when there is no subtitle
This commit is contained in:
parent
4b27a503b5
commit
9b374861be
1 changed files with 2 additions and 2 deletions
|
|
@ -874,9 +874,9 @@ class Context
|
||||||
}
|
}
|
||||||
if (count($vars))
|
if (count($vars))
|
||||||
{
|
{
|
||||||
$title = preg_replace_callback('/\\$(\w+)/', function($matches) use($vars) {
|
$title = trim(trim(preg_replace_callback('/\\$(\w+)/', function($matches) use($vars) {
|
||||||
return isset($vars[strtolower($matches[1])]) ? $vars[strtolower($matches[1])] : $matches[0];
|
return isset($vars[strtolower($matches[1])]) ? $vars[strtolower($matches[1])] : $matches[0];
|
||||||
}, $title);
|
}, $title), ' -'));
|
||||||
}
|
}
|
||||||
self::$_instance->site_title = $title;
|
self::$_instance->site_title = $title;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue