mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
[ticket/12026] Correct path for template files
Correct path for template files in MCP and UCP modules, which are added via extenstions PHPBB3-12026
This commit is contained in:
parent
46994e8dfb
commit
fa31096cb9
1 changed files with 4 additions and 4 deletions
|
@ -528,12 +528,12 @@ class p_master
|
||||||
* the style paths for the extension (the ext author can change them
|
* the style paths for the extension (the ext author can change them
|
||||||
* if necessary).
|
* 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, ...
|
// 0 vendor, 1 extension name, ...
|
||||||
if (isset($module_dir[3]) && $module_dir[1] === 'ext')
|
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))
|
if (is_dir($phpbb_root_path . $module_style_dir))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue