PageThumb.php
authoredward <edward@roojs.com>
Thu, 30 Mar 2017 09:30:33 +0000 (17:30 +0800)
committeredward <edward@roojs.com>
Thu, 30 Mar 2017 09:30:33 +0000 (17:30 +0800)
PageThumb.php

index 5baaeaf..281fecb 100644 (file)
@@ -61,9 +61,9 @@ class Pman_Cms_PageThumb extends Pman
         
         $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
         
-        $url = $protocol . $_SERVER['HTTP_HOST'] . $roo->rootURL .'/'. $basePHP . $pl;
+        $url = $protocol . $_SERVER['HTTP_HOST'] . $this->rootURL .'/'. $basePHP . $pl;
         
-        $file = $this->getStoreName();
+        $file = $cms_page->getStoreName();
         
         //var_dump(array(file_exists($file) , date('Y-m-d H:i:s', strtotime($this->updated)) , date('Y-m-d H:i:s', filemtime($file))));
         if(file_exists($file) && strtotime($this->updated) < filemtime($file)){