From ae3b015f654b4d3da2ca19414531c6bc13b63895 Mon Sep 17 00:00:00 2001 From: Pico88 Date: Sun, 24 Aug 2014 08:10:37 +0200 Subject: [PATCH] [ticket/12661] Load extensions templates from "all" folder by render() PHPBB3-12661 --- phpBB/phpbb/template/twig/twig.php | 4 ++++ 1 file changed, 4 insertions(+) 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)