Mailer.php
authorChris <chris@roojs.com>
Thu, 4 Jul 2013 07:28:03 +0000 (15:28 +0800)
committerChris <chris@roojs.com>
Thu, 4 Jul 2013 07:28:03 +0000 (15:28 +0800)
Mailer.php

index eb5b45a..40f9772 100644 (file)
@@ -237,7 +237,8 @@ class Pman_Core_Mailer {
     {
         
         if ($url[0] == '/') {
-            $file = $this->page->rootDir . $url;
+            $ff = HTML_FlexyFramework::get();
+            $file = $ff->rootDir . $url;
             require_once 'File/MimeType.php';
             $m  = new File_MimeType();
             $mt = $m->fromFilename($file);