diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-05-13 23:39:42 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-05-13 23:39:42 +0200 |
commit | 1e427fa031eea8dd6a1e04f1407f996d1d948203 (patch) | |
tree | 68c90aae0216728dd8427b05294bf7c57505159b /phpBB/phpbb | |
parent | 910b9b59b39ffab0614a310cfa9ddcf42723fe89 (diff) | |
download | forums-1e427fa031eea8dd6a1e04f1407f996d1d948203.tar forums-1e427fa031eea8dd6a1e04f1407f996d1d948203.tar.gz forums-1e427fa031eea8dd6a1e04f1407f996d1d948203.tar.bz2 forums-1e427fa031eea8dd6a1e04f1407f996d1d948203.tar.xz forums-1e427fa031eea8dd6a1e04f1407f996d1d948203.zip |
[ticket/12509] Fix the call to set_custom_file in adm/index and messenger
PHPBB3-12509
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/template/twig/twig.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php index 9e5a572cb5..a084245918 100644 --- a/phpBB/phpbb/template/twig/twig.php +++ b/phpBB/phpbb/template/twig/twig.php @@ -236,10 +236,18 @@ class twig extends \phpbb\template\base foreach ($names as $template_dir) { - if (is_array($template_dir) && isset($template_dir['ext_path'])) + if (is_array($template_dir)) { - $ext_style_template_path = $ext_path . $template_dir['ext_path']; - $ext_style_path = dirname($ext_style_template_path); + if (isset($template_dir['ext_path'])) + { + $ext_style_template_path = $ext_path . $template_dir['ext_path']; + $ext_style_path = dirname($ext_style_template_path); + } + else + { + $ext_style_path = $ext_path . 'styles/' . $template_dir['name'] . '/'; + $ext_style_template_path = $ext_style_path . 'template/'; + } } else { |