mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12612] Prefix custom UCP module function with phpbb_
PHPBB3-12612
This commit is contained in:
parent
b72fdd9acf
commit
0abc1f0f97
2 changed files with 10 additions and 2 deletions
|
@ -256,7 +256,7 @@ class p_master
|
|||
$lang_func = '_module_' . $short_name . '_lang';
|
||||
|
||||
// Custom function for calling parameters on module init (for example assigning template variables)
|
||||
$custom_func = '_module_' . $short_name;
|
||||
$custom_func = 'phpbb_module_' . $short_name;
|
||||
|
||||
$names[$row['module_basename'] . '_' . $row['module_mode']][] = true;
|
||||
|
||||
|
@ -286,6 +286,14 @@ class p_master
|
|||
{
|
||||
$custom_func($row['module_mode'], $module_row);
|
||||
}
|
||||
else
|
||||
{
|
||||
$custom_func = '_module_' . $short_name;
|
||||
if (function_exists($custom_func))
|
||||
{
|
||||
$custom_func($row['module_mode'], $module_row);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This event allows to modify parameters for building modules list
|
||||
|
|
|
@ -3549,7 +3549,7 @@ function phpbb_get_banned_user_ids($user_ids = array(), $ban_end = true)
|
|||
/**
|
||||
* Function for assigning a template var if the zebra module got included
|
||||
*/
|
||||
function _module_zebra($mode, &$module_row)
|
||||
function phpbb_module_zebra($mode, &$module_row)
|
||||
{
|
||||
global $template;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue