X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=MailTemplateList.php;h=104b1d7f8312d6d7c22e303602efe17bdbd99ba4;hb=8decb55b674bfafb65048f3daa196eac5ae2576d;hp=6cded709204f1db27a2f2f5091fb434dd246ed9a;hpb=fb3614aaf541d5037bf57c02e507ff7dd6c352f4;p=Pman.Core diff --git a/MailTemplateList.php b/MailTemplateList.php index 6cded709..104b1d7f 100644 --- a/MailTemplateList.php +++ b/MailTemplateList.php @@ -19,26 +19,25 @@ class Pman_Core_MailTemplateList extends Pman_Core_ConvertStyle if(!file_exists($dir . '/mail')){ continue; } - echo "$dir/mail/$entry
"; -// -// if ($handle = opendir($dir . '/mail')) { -// while (false !== ($entry = readdir($handle))) { -// if ($entry == "." || $entry == ".." || !preg_match('/\.html$/', $entry)) { -// continue; -// } -// + + if ($handle = opendir($dir . '/mail')) { + while (false !== ($entry = readdir($handle))) { + if ($entry == "." || $entry == ".." || !preg_match('/\.html$/', $entry)) { + continue; + } + echo "$dir/mail/$entry
"; // $ret[] = array( // 'file' => $entry, // 'content' => $this->convertStyle("$dir/mail/$entry") // ); -// } -// -// closedir($handle); -// } + } + + closedir($handle); + } } exit; - $this->jok($ret); +// $this->jok($ret); }