aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template
diff options
context:
space:
mode:
authorPico88 <luki_9@wp.pl>2014-08-24 08:10:37 +0200
committerPico88 <luki_9@wp.pl>2014-08-24 08:10:37 +0200
commitae3b015f654b4d3da2ca19414531c6bc13b63895 (patch)
tree0db67f7ad65b8050809af7c05dae92f3f6b1bbfa /phpBB/phpbb/template
parent154710aa50f8277c72958f181c676d9d0d72317d (diff)
downloadforums-ae3b015f654b4d3da2ca19414531c6bc13b63895.tar
forums-ae3b015f654b4d3da2ca19414531c6bc13b63895.tar.gz
forums-ae3b015f654b4d3da2ca19414531c6bc13b63895.tar.bz2
forums-ae3b015f654b4d3da2ca19414531c6bc13b63895.tar.xz
forums-ae3b015f654b4d3da2ca19414531c6bc13b63895.zip
[ticket/12661] Load extensions templates from "all" folder by render()
PHPBB3-12661
Diffstat (limited to 'phpBB/phpbb/template')
-rw-r--r--phpBB/phpbb/template/twig/twig.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php
index 5e2057f818..bb9202930b 100644
--- a/phpBB/phpbb/template/twig/twig.php
+++ b/phpBB/phpbb/template/twig/twig.php
@@ -177,6 +177,10 @@ class twig extends \phpbb\template\base
}
$names = $this->get_user_style();
+ // Add 'all' folder to $names array
+ // It allows extensions to load a template file from 'all' folder,
+ // if a style doesn't include it.
+ $names[] = 'all';
$paths = array();
foreach ($style_directories as $directory)