From 3d3a448d1faf45a84954cb494605c2bb677e7114 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 19 Feb 2014 17:05:18 +0800 Subject: [PATCH] MailTemplateList.php --- MailTemplateList.php | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/MailTemplateList.php b/MailTemplateList.php index 104b1d7f..827638aa 100644 --- a/MailTemplateList.php +++ b/MailTemplateList.php @@ -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
"; -// $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
"; +//// $ret[] = array( +//// 'file' => $entry, +//// 'content' => $this->convertStyle("$dir/mail/$entry") +//// ); +// } +// +// closedir($handle); +// } } exit; -- 2.39.2