aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-12-04 13:59:59 -0800
committerNathan Guse <nathaniel.guse@gmail.com>2013-12-04 13:59:59 -0800
commit97bf88dd3281a93815123217ad832340e6d5819e (patch)
treeaf3afcfbfd9ec1ce735b3fa6325bebcc4a49e1df /phpBB/includes
parente399a52816c57426de1147d4994df58f4c581313 (diff)
parent9e18867cc5d6acc799fc32e21cebd1e48c9df9ea (diff)
downloadforums-97bf88dd3281a93815123217ad832340e6d5819e.tar
forums-97bf88dd3281a93815123217ad832340e6d5819e.tar.gz
forums-97bf88dd3281a93815123217ad832340e6d5819e.tar.bz2
forums-97bf88dd3281a93815123217ad832340e6d5819e.tar.xz
forums-97bf88dd3281a93815123217ad832340e6d5819e.zip
Merge pull request #1879 from Pico88/ticket/12026
[ticket/12026] Correct path for template files
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_module.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index dca720c36e..e1259eba12 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -528,12 +528,12 @@ class p_master
* the style paths for the extension (the ext author can change them
* if necessary).
*/
- $module_dir = explode('_', get_class($this->module));
+ $module_dir = explode('\\', get_class($this->module));
- // 0 phpbb, 1 ext, 2 vendor, 3 extension name, ...
- if (isset($module_dir[3]) && $module_dir[1] === 'ext')
+ // 0 vendor, 1 extension name, ...
+ if (isset($module_dir[1]))
{
- $module_style_dir = 'ext/' . $module_dir[2] . '/' . $module_dir[3] . '/styles';
+ $module_style_dir = 'ext/' . $module_dir[0] . '/' . $module_dir[1] . '/styles';
if (is_dir($phpbb_root_path . $module_style_dir))
{