aboutsummaryrefslogtreecommitdiffstats
path: root/admin/thumbnail.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-22 14:22:50 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-22 14:22:50 +0000
commitef00110fe75a3036908602d3f4c8e54df43dd72d (patch)
treeb728eb30642cc6fed3aba7cd6b71df559dac0a04 /admin/thumbnail.php
parenta3963aedefad0eaefe0ba9aed463de35ee144d24 (diff)
feature:2274
Bug corrected with crop option. Clean code. Add sentence in thumbnails page for regeneration. git-svn-id: http://piwigo.org/svn/trunk@10571 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/thumbnail.php')
-rw-r--r--admin/thumbnail.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/admin/thumbnail.php b/admin/thumbnail.php
index 461b11425..a59a931b5 100644
--- a/admin/thumbnail.php
+++ b/admin/thumbnail.php
@@ -100,6 +100,8 @@ while ( $row=pwg_db_fetch_assoc($result) )
// +-----------------------------------------------------------------------+
// | form & pictures without thumbnails display |
// +-----------------------------------------------------------------------+
+$template->set_filenames( array('thumbnail'=>'thumbnail.tpl') );
+
if (count($wo_thumbnails) > 0)
{
foreach ($wo_thumbnails as $path)
@@ -114,7 +116,8 @@ if (count($wo_thumbnails) > 0)
'FILESIZE_IMG'=>$size,
'WIDTH_IMG'=>$width,
'HEIGHT_IMG'=>$height,
- ));
+ )
+ );
}
}
@@ -131,15 +134,9 @@ $template->assign(
'F_ACTION' => get_root_url().'admin.php?page=thumbnail',
'values' => $form_values,
'TOTAL_NB_REMAINING' => count($wo_thumbnails),
+ 'U_HELP' => get_root_url().'admin/popuphelp.php?page=thumbnail',
)
);
-// +-----------------------------------------------------------------------+
-// | return to admin |
-// +-----------------------------------------------------------------------+
-$template->set_filenames( array('thumbnail'=>'thumbnail.tpl') );
-
-$template->assign('U_HELP', get_root_url().'admin/popuphelp.php?page=thumbnail');
-
$template->assign_var_from_handle('ADMIN_CONTENT', 'thumbnail');
?>