diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-09-02 20:54:51 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-09-02 20:54:51 +0200 |
commit | 6777d462ffb5a45428fc1597e18663224c802af6 (patch) | |
tree | c3b255decaf1ba95d150c91b65ccc6d54fab765e /phpBB/phpbb/template | |
parent | d86817ef07de8d6b581dd50c5a18796ceea7f471 (diff) | |
parent | 9d44c5d940a03599ad7a31bd9aafca7835d00214 (diff) | |
download | forums-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.php | 4 |
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) |