[ticket/14443] substr($var, 0, 1) -> $var[0]

PHPBB3-14443
This commit is contained in:
Martin Beckmann 2016-02-27 15:14:31 +01:00
parent a35314c6ea
commit 5d579631d7

View file

@ -214,7 +214,7 @@ class messenger
{
global $config, $phpbb_root_path, $phpEx, $user, $phpbb_extension_manager;
$template_dir_prefix = (!$template_dir_prefix || substr($template_dir_prefix, 0, 1) === '/') ? $template_dir_prefix : '/' . $template_dir_prefix;
$template_dir_prefix = (!$template_dir_prefix || $template_dir_prefix[0] === '/') ? $template_dir_prefix : '/' . $template_dir_prefix;
$this->setup_template();