mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/17151] Make macros available for extensions
Also add tests and error reporting. PHPBB3-17151
This commit is contained in:
@@ -618,8 +618,6 @@ class acp_modules
|
||||
|
||||
$langname = $user->lang($row['module_langname']);
|
||||
$module_list .= '<option value="' . $row['module_id'] . '"' . $selected . ((!$row['module_enabled']) ? ' class="disabled"' : '') . '>' . $padding . $langname . '</option>';
|
||||
|
||||
$iteration++;
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
|
@@ -608,12 +608,19 @@ class p_master
|
||||
|
||||
if (is_dir($module_style_dir))
|
||||
{
|
||||
$template->set_custom_style(array(
|
||||
array(
|
||||
'name' => 'adm',
|
||||
'ext_path' => 'adm/style/',
|
||||
),
|
||||
), array($module_style_dir, $phpbb_admin_path . 'style'));
|
||||
$template->set_custom_style(
|
||||
[
|
||||
[
|
||||
'name' => 'adm',
|
||||
'ext_path' => 'adm/style/',
|
||||
],
|
||||
],
|
||||
[
|
||||
$module_style_dir,
|
||||
$phpbb_admin_path . 'style',
|
||||
$phpbb_root_path . 'styles/all/template/',
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user