Skip to content

Commit

Permalink
don't rebuild tiles on script change
Browse files Browse the repository at this point in the history
Ignore-this: c38506adb25a48f226893bb9e42be878

darcs-hash:20090609182057-7ad00-ee95b278bc1128c4ef1453ed6225cd6261fb9546.gz
  • Loading branch information
splitbrain committed Jun 9, 2009
1 parent 4721ec8 commit c131b32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

author Andreas Gohr
email andi@splitbrain.org
date 2009-06-08
date 2009-06-09
name PanoView Plugin
desc View large images in a pannable view
url http://www.dokuwiki.org/plugin:panoview
3 changes: 1 addition & 2 deletions tiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@
// cache times
$data['cache'] = getCacheName($data['file'],'.pv.'.$data['zoom'].'-'.$data['col'].'-'.$data['row'].'.jpg');
$data['cachet'] = @filemtime($data['cache']);
$data['selft'] = filemtime(__FILE__);

// (re)generate
if( ($data['cachet'] < $data['mtime']) || ($data['cachet'] < $data['selft']) ){
if($data['cachet'] < $data['mtime']){
if($conf['im_convert']){
tile_im($data);
}else{
Expand Down

0 comments on commit c131b32

Please sign in to comment.