representative was badly tested using prefix_thumbnail...
git-svn-id: http://piwigo.org/svn/trunk@522 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
9519786fa4
commit
01d3587006
1 changed files with 3 additions and 3 deletions
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
if( !defined("PHPWG_ROOT_PATH") )
|
||||
{
|
||||
die ("Hacking attempt!");
|
||||
die ("Hacking attempt!");
|
||||
}
|
||||
include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
|
||||
|
||||
|
|
@ -425,8 +425,8 @@ SELECT file
|
|||
$representative_ext = '';
|
||||
foreach ($conf['picture_ext'] as $ext)
|
||||
{
|
||||
$test = $conf['prefix_thumbnail'].$file_wo_ext.'.'.$ext;
|
||||
if (!in_array($test, $fs_thumbnails))
|
||||
$candidate = $file_wo_ext.'.'.$ext;
|
||||
if (!in_array($candidate, $fs_representatives))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue