aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-09-02 20:54:51 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-09-02 20:54:51 +0200
commit6777d462ffb5a45428fc1597e18663224c802af6 (patch)
treec3b255decaf1ba95d150c91b65ccc6d54fab765e /phpBB/phpbb/template
parentd86817ef07de8d6b581dd50c5a18796ceea7f471 (diff)
parent9d44c5d940a03599ad7a31bd9aafca7835d00214 (diff)
downloadforums-6777d462ffb5a45428fc1597e18663224c802af6.tar
forums-6777d462ffb5a45428fc1597e18663224c802af6.tar.gz
forums-6777d462ffb5a45428fc1597e18663224c802af6.tar.bz2
forums-6777d462ffb5a45428fc1597e18663224c802af6.tar.xz
forums-6777d462ffb5a45428fc1597e18663224c802af6.zip
Merge pull request #2908 from Pico/t/12661
[ticket/12661] Load extensions templates from "all" folder by render()
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..a3b002f350 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)