MailTemplateList.php
authorEdward <edward@roojs.com>
Wed, 19 Feb 2014 09:05:18 +0000 (17:05 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Feb 2014 09:05:18 +0000 (17:05 +0800)
MailTemplateList.php

index 104b1d7..827638a 100644 (file)
@@ -20,20 +20,21 @@ class Pman_Core_MailTemplateList extends Pman_Core_ConvertStyle
                 continue;
             }
               
-            if ($handle = opendir($dir . '/mail')) {
-                while (false !== ($entry = readdir($handle))) {
-                    if ($entry == "." || $entry == ".." || !preg_match('/\.html$/', $entry)) {
-                        continue;
-                    }
-                    echo "$dir/mail/$entry<br/>";
-//                    $ret[] = array(
-//                        'file' => $entry,
-//                        'content' => $this->convertStyle("$dir/mail/$entry")
-//                    );
-                }
-                
-                closedir($handle);
-            }
+            echo dirname($dir . '/mail');
+//            if ($handle = opendir($dir . '/mail')) {
+//                while (false !== ($entry = readdir($handle))) {
+//                    if ($entry == "." || $entry == ".." || !preg_match('/\.html$/', $entry)) {
+//                        continue;
+//                    }
+//                    echo "$dir/mail/$entry<br/>";
+////                    $ret[] = array(
+////                        'file' => $entry,
+////                        'content' => $this->convertStyle("$dir/mail/$entry")
+////                    );
+//                }
+//                
+//                closedir($handle);
+//            }
             
         }
         exit;