diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-02-19 16:25:47 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-02-19 16:25:47 +0000 |
commit | c3614fd12c2296a7410d6bd26f35f988a4dd49f1 (patch) | |
tree | aa9cb100d39f5fedc8f9288012ab6d0628981b1a /include/calendar_monthly.class.php | |
parent | c8bc5c665dff485a3a233e23c6eaa78930f8766f (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/calendar_monthly.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ <?php // +-----------------------------------------------------------------------+ // | PhpWebGallery - a PHP based picture gallery | -// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net | +// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ // | file : $Id$ // | last update : $Date$ @@ -438,14 +438,14 @@ SELECT id, file,tn_ext,path, width, height, DAYOFWEEK('.$this->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); |