1
0
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:
Marc Alexander
2012-11-26 23:06:38 +01:00
parent 0abec06b09
commit cb1d98ab7f
4 changed files with 21 additions and 5 deletions

View File

@@ -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');