Ignore:
Timestamp:
Dec 21, 2011, 10:01:26 PM (9 years ago)
Author:
rvelices
Message:

derivatives

  • better status codes + http headers on i.php
  • automatically switch to script mode, regenerate and reload derivatives on demand if their parameters change (without the need to clear the cache)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/derivatives/include/derivative.inc.php

    r12775 r12778  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | Piwigo - a PHP based photo gallery                                    |
     4// +-----------------------------------------------------------------------+
     5// | Copyright(C) 2008-2012 Piwigo Team                  http://piwigo.org |
     6// +-----------------------------------------------------------------------+
     7// | This program is free software; you can redistribute it and/or modify  |
     8// | it under the terms of the GNU General Public License as published by  |
     9// | the Free Software Foundation                                          |
     10// |                                                                       |
     11// | This program is distributed in the hope that it will be useful, but   |
     12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     14// | General Public License for more details.                              |
     15// |                                                                       |
     16// | You should have received a copy of the GNU General Public License     |
     17// | along with this program; if not, write to the Free Software           |
     18// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     19// | USA.                                                                  |
     20// +-----------------------------------------------------------------------+
    221
    322final class SrcImage
     
    150169    {
    151170      $mtime = @filemtime(PHPWG_ROOT_PATH.$rel_path);
    152       if ($mtime===false)
     171      if ($mtime===false or $mtime < $params->last_mod_time)
    153172      {
    154173        $url_style = 2;
Note: See TracChangeset for help on using the changeset viewer.