Ticket #51: mythweb-nonlocalpng2.patch
File mythweb-nonlocalpng2.patch, 975 bytes (added by , 20 years ago) |
---|
-
mythweb/includes/mythbackend.php
267 267 $show->starttime, // dummy org airdate 268 268 '', // trailing separator 269 269 ); 270 $lastmodified = strtotime(backend_command($cmd)); 270 if (is_file($pngpath)) { 271 $lastmodified = filemtime($pngpath); 271 272 // Delete outdated images, but not until the show has finished recording 272 if (is_file($pngpath) && $lastmodified < $show->lastmodified && $show->lastmodified >= $show->endtime) { 273 unlink($pngpath); 274 clearstatcache(); 273 if ($lastmodified < $show->lastmodified && $show->lastmodified >= $show->endtime) { 274 unlink($pngpath); 275 clearstatcache(); 276 } 275 277 } 276 278 // Need a new pixmap? 277 279 if (!is_file($pngpath)) {