1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Oops I did a Paul... Still allow avatar uploads from Urls

git-svn-id: file:///svn/phpbb/trunk@2243 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
the_systech
2002-03-01 18:04:27 +00:00
parent ebef119796
commit 89ceaa9975
6 changed files with 14 additions and 12 deletions

View File

@@ -1626,13 +1626,17 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
// of the templates to 'fake' an IF...ELSE...ENDIF solution
// it works well :)
//
if( $userdata['user_allowavatar'] && ( ($board_config['allow_avatar_upload'] && $form_enctype != '') || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )
if( $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )
{
$template->assign_block_vars("avatarblock", array() );
if($board_config['allow_avatar_upload'] && file_exists("./" . $board_config['avatar_path']) && $form_enctype != '')
if($board_config['allow_avatar_upload'] && file_exists("./" . $board_config['avatar_path']))
{
$template->assign_block_vars("avatarblock.avatarupload", array() );
if( $form_enctype != '' )
{
$template->assign_block_vars("avatarblock.avatarupload.avatarfileupload", array() );
}
}
if($board_config['allow_avatar_remote'])