Minahito
minah****@users*****
2006年 8月 5日 (土) 15:18:02 JST
Index: xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php:1.1.2.10 xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php:1.1.2.11 --- xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php:1.1.2.10 Wed Aug 2 18:44:37 2006 +++ xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php Sat Aug 5 15:18:02 2006 @@ -120,14 +120,8 @@ // // Make the list of theme. // - $themeArr = array(); - $dirHandler = opendir(XOOPS_THEME_PATH . "/"); - while ($file = readdir($dirHandler)) { - if (is_dir(XOOPS_THEME_PATH . "/" . $file) && preg_match("/^[a-z0-9_]+$/", $file) && file_exists(XOOPS_THEME_PATH . "/${file}/theme.html")) { - $themeArr[$file] = $file; - } - } - closedir($dirHandler); + $handler =& xoops_getmodulehandler('theme'); + $themeArr =& $handler->getObjects(); $render->setAttribute('themeArr', $themeArr); //