{
$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);