MailTemplateList.php
[Pman.Core] / MailTemplateList.php
index d13c22b..eb30358 100644 (file)
@@ -19,19 +19,20 @@ class Pman_Core_MailTemplateList extends Pman
         $fopts = HTML_FlexyFramework::get()->HTML_Template_Flexy;
         
         $templateDir = explode(PATH_SEPARATOR, $fopts['templateDir']);
-        print_r($templateDir);exit;
+        
         foreach ($templateDir as $dir){
+            echo "$dir <br/>";
             if(!file_exists($dir . '/mail')){
                 continue;
             }
             
-            if ($handle = opendir($dir . '/')) {
+            if ($handle = opendir($dir . '/mail')) {
                 while (false !== ($entry = readdir($handle))) {
                     if ($entry == "." || $entry == "..") {
                         continue;
                     }
                     
-                    echo "$entry\n";
+                    echo "$entry <br/>";
                 }
                 
                 closedir($handle);