mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Ok one last attempt on my part to fix file upload bugs.. Might actually work (Hey it could happen, even I get one right occasionally)
git-svn-id: file:///svn/phpbb/trunk@2296 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -983,7 +983,14 @@ if( $mode == "edit" || $mode == "save" && ( isset($HTTP_POST_VARS['username']) |
|
||||
// Let's do an overall check for settings/versions which would prevent
|
||||
// us from doing file uploads....
|
||||
//
|
||||
$file_uploads = get_cfg_var('file_uploads');
|
||||
if(phpversion() >= '4.0.0')
|
||||
{
|
||||
$file_uploads = ini_get('file_uploads');
|
||||
}
|
||||
else
|
||||
{
|
||||
$file_uploads = get_cfg_var('file_uploads');
|
||||
}
|
||||
if( ($file_uploads == 0 && !empty($file_uploads)) || (strtolower($file_uploads) == 'off') || (phpversion() == '4.0.4pl1') || (!$board_config['allow_avatar_upload']) )
|
||||
{
|
||||
$form_enctype = '';
|
||||
|
Reference in New Issue
Block a user