aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorLukasz <luki_9@wp.pl>2013-11-20 22:57:41 +0100
committerLukasz <luki_9@wp.pl>2013-11-20 22:57:41 +0100
commitfa31096cb98a8c26377121f26ea79520dcab00f9 (patch)
tree6e772bc9c2790cdb4052efe800a33ed7ae43b515 /phpBB
parent46994e8dfbb3a50aeeb5b02cf850f8a7630b9e95 (diff)
downloadforums-fa31096cb98a8c26377121f26ea79520dcab00f9.tar
forums-fa31096cb98a8c26377121f26ea79520dcab00f9.tar.gz
forums-fa31096cb98a8c26377121f26ea79520dcab00f9.tar.bz2
forums-fa31096cb98a8c26377121f26ea79520dcab00f9.tar.xz
forums-fa31096cb98a8c26377121f26ea79520dcab00f9.zip
[ticket/12026] Correct path for template files
Correct path for template files in MCP and UCP modules, which are added via extenstions PHPBB3-12026
Diffstat (limited to 'phpBB')
-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..ac13a99aa2 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 = $phpbb_root_path . 'ext/' . $module_dir[0] . '/' . $module_dir[1] . '/styles';
if (is_dir($phpbb_root_path . $module_style_dir))
{