mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
'(mb_)substr(...)' used as index-based access.
(cherry picked from commit e89f017
)
This commit is contained in:
parent
4dcb113960
commit
5dd290f2b2
5 changed files with 27 additions and 23 deletions
|
@ -83,7 +83,7 @@ function init_display_template($template_var, $replacement, $filename = 'viewtop
|
|||
}
|
||||
|
||||
$complete_filename = $filename;
|
||||
if (substr($complete_filename, 0, 1) != '/') {
|
||||
if ($complete_filename[0] != '/') {
|
||||
$complete_filename = $template->root . '/' . $complete_filename;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue