DataObjects/Core_mailing_list_message.php
authorEdward <edward@roojs.com>
Thu, 20 Feb 2014 09:34:05 +0000 (17:34 +0800)
committerEdward <edward@roojs.com>
Thu, 20 Feb 2014 09:34:05 +0000 (17:34 +0800)
DataObjects/Core_mailing_list_message.php

index 9d1ae54..2a31a28 100644 (file)
@@ -228,6 +228,8 @@ class Pman_Core_DataObjects_Core_mailing_list_message extends DB_DataObject
     
     function cachedMailWithOutImages($force = false, $replace_links = true)
     {  
+        $random_hash = md5(date('r', time()));
+        
         $this->cachedImages($random_hash);
         
         $cachePath = session_save_path() . '/email-cache-' . getenv('APACHE_RUN_USER') . '/mail/' . $this->tableName() . '-' . $this->id . '.txt';
@@ -252,7 +254,7 @@ class Pman_Core_DataObjects_Core_mailing_list_message extends DB_DataObject
         ))."\n");
         
         
-        $random_hash = md5(date('r', time()));
+        
         
 // note the extra space to finish the last line..
         fwrite($fh, " " . "