aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-09-18 16:04:41 +0000
committerz0rglub <z0rglub@piwigo.org>2004-09-18 16:04:41 +0000
commit01d3587006df667212c173d6bcfc9616fea16e19 (patch)
treeb7b7b9f1f39099e7b136666c97627958b23e2515
parent9519786fa4f2fc88f9778045904275e7591daf88 (diff)
representative was badly tested using prefix_thumbnail...
git-svn-id: http://piwigo.org/svn/trunk@522 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/update.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/update.php b/admin/update.php
index 42683f3cd..8de8e4e65 100644
--- a/admin/update.php
+++ b/admin/update.php
@@ -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;
}