aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_module.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-23 22:54:15 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-23 22:54:15 +0200
commitbba23f61b334a32faf8c33b62266ae55fa4616a5 (patch)
tree703e6df06c14f1e59d15c6289d21695db9072ae0 /phpBB/includes/functions_module.php
parente4437e19e8be79c32945fbb4e79df84e60e73690 (diff)
downloadforums-bba23f61b334a32faf8c33b62266ae55fa4616a5.tar
forums-bba23f61b334a32faf8c33b62266ae55fa4616a5.tar.gz
forums-bba23f61b334a32faf8c33b62266ae55fa4616a5.tar.bz2
forums-bba23f61b334a32faf8c33b62266ae55fa4616a5.tar.xz
forums-bba23f61b334a32faf8c33b62266ae55fa4616a5.zip
[ticket/12612] Prefix module url functions with phpbb_
PHPBB3-12612
Diffstat (limited to 'phpBB/includes/functions_module.php')
-rw-r--r--phpBB/includes/functions_module.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index 41c6f0118e..86439ea03f 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -250,13 +250,25 @@ class p_master
// Function for building 'url_extra'
$short_name = $this->get_short_name($row['module_basename']);
- $url_func = '_module_' . $short_name . '_url';
+ $url_func = 'phpbb_module_' . $short_name . '_url';
+ if (!function_exists($url_func))
+ {
+ $url_func = '_module_' . $short_name . '_url';
+ }
// Function for building the language name
- $lang_func = '_module_' . $short_name . '_lang';
+ $lang_func = 'phpbb_module_' . $short_name . '_lang';
+ if (!function_exists($lang_func))
+ {
+ $lang_func = '_module_' . $short_name . '_lang';
+ }
// Custom function for calling parameters on module init (for example assigning template variables)
$custom_func = 'phpbb_module_' . $short_name;
+ if (!function_exists($custom_func))
+ {
+ $custom_func = '_module_' . $short_name;
+ }
$names[$row['module_basename'] . '_' . $row['module_mode']][] = true;
@@ -286,14 +298,6 @@ 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