MailTemplateList.php
[Pman.Core] / MailTemplateList.php
index 6c67e1b..1826c21 100644 (file)
@@ -17,10 +17,11 @@ class Pman_Core_MailTemplateList extends Pman
     function get()
     {
         $fopts = HTML_FlexyFramework::get()->HTML_Template_Flexy;
-        print_r($fopts);exit;
-        $templateDir = explode(PATH_SEPARATOR, $fopts->templateDir);
+        
+        $templateDir = explode(PATH_SEPARATOR, $fopts['templateDir']);
         
         foreach ($templateDir as $dir){
+            echo "$dir <br/>";
             if(!file_exists($dir . '/mail')){
                 continue;
             }
@@ -31,7 +32,7 @@ class Pman_Core_MailTemplateList extends Pman
                         continue;
                     }
                     
-                    echo "$entry\n";
+                    echo "$entry <br/>";
                 }
                 
                 closedir($handle);