diff options
Diffstat (limited to 'phpBB/includes/functions_module.php')
| -rw-r--r-- | phpBB/includes/functions_module.php | 20 | 
1 files changed, 17 insertions, 3 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index 51284af233..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 = '_module_' . $short_name; +			$custom_func = 'phpbb_module_' . $short_name; +			if (!function_exists($custom_func)) +			{ +				$custom_func = '_module_' . $short_name; +			}  			$names[$row['module_basename'] . '_' . $row['module_mode']][] = true; @@ -456,7 +468,9 @@ class p_master  		);  		$is_auth = false; +		// @codingStandardsIgnoreStart  		eval('$is_auth = (int) (' .	$module_auth . ');'); +		// @codingStandardsIgnoreEnd  		return $is_auth;  	}  | 
