From c3614fd12c2296a7410d6bd26f35f988a4dd49f1 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 19 Feb 2007 16:25:47 +0000 Subject: web service: added method to query search elements picture: small correction on my last commit monthly calendar nice view: always use getimagesize instead of guessing the size query search: improved results (filename is searched separately) and sometimes less sql queries than before git-svn-id: http://piwigo.org/svn/trunk@1837 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/calendar_monthly.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/calendar_monthly.class.php') diff --git a/include/calendar_monthly.class.php b/include/calendar_monthly.class.php index 0dfdbcf63..c7822394b 100644 --- a/include/calendar_monthly.class.php +++ b/include/calendar_monthly.class.php @@ -1,7 +1,7 @@ date_field.')-1 a } else { - // first try to guess thumbnail size +/* // first try to guess thumbnail size if ( !empty($items[$day]['width']) ) { $tn_size = get_picture_size( $items[$day]['width'], $items[$day]['height'], $conf['tn_width'], $conf['tn_height'] ); } - else + else*/ {// item not an image (tn is either mime type or an image) $thumb = get_thumbnail_path($items[$day]); $tn_size = @getimagesize($thumb); -- cgit v1.2.3