mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 09:14:48 +09:00
Fix unnecessary slash after override_filename (this causes a warning in line 349)
This commit is contained in:
parent
950b7c24b4
commit
bd7ef4bedd
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ class Template
|
||||||
}
|
}
|
||||||
if ($override_filename)
|
if ($override_filename)
|
||||||
{
|
{
|
||||||
$override_filename = trim(preg_replace('@^' . preg_quote(\RX_BASEDIR, '@') . '|\./@', '', strtr($override_filename, ['\\' => '/', '//' => '/'])), '/') . '/';
|
$override_filename = trim(preg_replace('@^' . preg_quote(\RX_BASEDIR, '@') . '|\./@', '', strtr($override_filename, ['\\' => '/', '//' => '/'])), '/');
|
||||||
$override_filename = preg_replace('/[\{\}\(\)\[\]<>\$\'"]/', '', $override_filename);
|
$override_filename = preg_replace('/[\{\}\(\)\[\]<>\$\'"]/', '', $override_filename);
|
||||||
$this->absolute_path = \RX_BASEDIR . $override_filename;
|
$this->absolute_path = \RX_BASEDIR . $override_filename;
|
||||||
$this->relative_path = $override_filename;
|
$this->relative_path = $override_filename;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue