1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +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

@@ -122,14 +122,6 @@ $smtp_no = ( !$new['smtp_delivery'] ) ? "checked=\"checked\"" : "";
$template->set_filenames(array(
"body" => "admin/board_config_body.tpl")
);
//
// Check to see if file uploads are possible before displaying
// avatar upload option.
//
if( (get_cfg_var('file_uploads') != 0) && (strtolower(get_cfg_var('file_uploads')) != 'off') && (phpversion() != '4.0.4pl1') )
{
$template->assign_block_vars('switch_uploads_possible', array());
}
//
// Escape any quotes in the site description for proper display in the text

View File

@@ -1107,6 +1107,10 @@ if( $mode == "edit" || $mode == "save" && ( isset($HTTP_POST_VARS['username']) |
if( file_exists("./../" . $board_config['avatar_path']) )
{
$template->assign_block_vars("avatarupload", array() );
if($form_enctype != '')
{
$template->assign_block_vars('avatarupload.fileuploads', array() );
}
}
if( file_exists("./../" . $board_config['avatar_gallery_path']) )