From 0abc1f0f973e916f12b0c5cf0e844c991f63c552 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 23 Jun 2014 22:46:20 +0200 Subject: [ticket/12612] Prefix custom UCP module function with phpbb_ PHPBB3-12612 --- phpBB/includes/functions_module.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/functions_module.php') diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index b7615e923b..41c6f0118e 100644 --- a/phpBB/includes/functions_module.php +++ b/phpBB/includes/functions_module.php @@ -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 -- cgit v1.2.1