bug 40 : case issue for uploaded pictures
git-svn-id: http://piwigo.org/svn/branches/release-1_3@544 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
94aadfe7ff
commit
a896587970
1 changed files with 2 additions and 2 deletions
|
@ -30,13 +30,13 @@
|
|||
function validate_upload( $temp_name, $my_max_file_size,
|
||||
$image_max_width, $image_max_height )
|
||||
{
|
||||
global $lang;
|
||||
global $conf, $lang;
|
||||
|
||||
$result = array();
|
||||
$result['error'] = array();
|
||||
//echo $_FILES['picture']['name']."<br />".$temp_name;
|
||||
$extension = get_extension( $_FILES['picture']['name'] );
|
||||
if ( $extension != 'gif' and $extension != 'jpg' and $extension != 'png' )
|
||||
if ( in_array( $extension, $conf['picture_ext'] )
|
||||
{
|
||||
array_push( $result['error'], $lang['upload_advise_filetype'] );
|
||||
return $result;
|
||||
|
|
Loading…
Reference in a new issue