MailTemplateList.php
[Pman.Core] / MailTemplateList.php
index acf8a31..eb30358 100644 (file)
@@ -18,20 +18,21 @@ class Pman_Core_MailTemplateList extends Pman
     {
         $fopts = HTML_FlexyFramework::get()->HTML_Template_Flexy;
         
-        $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;
             }
             
-            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);