mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/avatars] Check for existing functions rather than using _once
PHPBB3-10018
This commit is contained in:
@@ -545,7 +545,10 @@ class ucp_profile
|
||||
break;
|
||||
|
||||
case 'avatar':
|
||||
include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx);
|
||||
if (!function_exists('display_forums'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
|
||||
}
|
||||
|
||||
add_form_key('ucp_avatar');
|
||||
|
||||
|
Reference in New Issue
Block a user