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
This commit is contained in:
patdenice
2011-04-22 14:22:50 +00:00
parent a3963aedef
commit ef00110fe7
4 changed files with 42 additions and 40 deletions
+5 -8
View File
@@ -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');
?>