mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-05 00:13:05 +02:00
*** empty log message ***
git-svn-id: http://piwigo.org/svn/trunk@13 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -19,9 +19,7 @@ $tab_ext_create_TN = array ( 'jpg', 'png' );
|
||||
|
||||
function is_image( $filename, $create_thumbnail = false )
|
||||
{
|
||||
global $tab_ext_create_TN, $conf;
|
||||
|
||||
$is_image = false;
|
||||
global $conf;
|
||||
|
||||
if ( is_file ( $filename ) )
|
||||
{
|
||||
@@ -34,7 +32,7 @@ function is_image( $filename, $create_thumbnail = false )
|
||||
if ( in_array( get_extension( $filename ), $conf['picture_ext'] )
|
||||
and ( $size[2] == 1 or $size[2] == 2 or $size[2] == 3 ) )
|
||||
{
|
||||
$is_image = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -42,11 +40,11 @@ function is_image( $filename, $create_thumbnail = false )
|
||||
if ( in_array( get_extension( $filename ), $tab_ext_create_TN )
|
||||
and ( $size[2] == 2 or $size[2] == 3 ) )
|
||||
{
|
||||
$is_image = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $is_image;
|
||||
return false;
|
||||
}
|
||||
|
||||
function TN_exists( $dir, $file )
|
||||
|
||||
Reference in New Issue
Block a user