onokazu
onoka****@users*****
2005年 5月 31日 (火) 12:41:31 JST
Index: xoops2jp/html/modules/system/admin/preferences/main.php diff -u xoops2jp/html/modules/system/admin/preferences/main.php:1.2.6.3 xoops2jp/html/modules/system/admin/preferences/main.php:1.2.6.4 --- xoops2jp/html/modules/system/admin/preferences/main.php:1.2.6.3 Fri May 13 20:03:04 2005 +++ xoops2jp/html/modules/system/admin/preferences/main.php Tue May 31 12:41:31 2005 @@ -1,5 +1,5 @@ <?php -// $Id: main.php,v 1.2.6.3 2005/05/13 11:03:04 minahito Exp $ +// $Id: main.php,v 1.2.6.4 2005/05/31 03:41:31 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -67,7 +67,7 @@ include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; $form = new XoopsThemeForm(constant($confcat->getVar('confcat_name')), 'pref_form', 'admin.php?fct=preferences'); - $form->addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('preferences'))); + $form->addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('preferences'))); $config_handler =& xoops_gethandler('config'); $criteria = new CriteriaCompo(); $criteria->add(new Criteria('conf_modid', 0)); @@ -115,7 +115,7 @@ $handle = opendir(XOOPS_THEME_PATH.'/'); $dirlist = array(); while (false !== ($file = readdir($handle))) { - if (is_dir(XOOPS_THEME_PATH.'/'.$file) && !preg_match("/^[.]{1,2}$/",$file) && strtolower($file) != 'cvs') { + if (is_dir(XOOPS_THEME_PATH.'/'.$file) && !preg_match("/^\..*$/",$file) && strtolower($file) != 'cvs') { $dirlist[$file]=$file; } } @@ -233,7 +233,7 @@ } include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; $form = new XoopsThemeForm(_MD_AM_MODCONFIG, 'pref_form', 'admin.php?fct=preferences'); - $form->addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('preferences'))); + $form->addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('preferences'))); $module_handler =& xoops_gethandler('module'); $module =& $module_handler->get($mod); if (file_exists(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname').'/language/'.$xoopsConfig['language'].'/modinfo.php')) { @@ -331,12 +331,12 @@ } if ($op == 'save') { - if(!XoopsMultiTokenHandler::quickValidate('preferences')) { - xoops_cp_header(); - xoops_error("Token Error"); - xoops_cp_footer(); - } - + if(!XoopsMultiTokenHandler::quickValidate('preferences')) { + xoops_cp_header(); + xoops_error("Token Error"); + xoops_cp_footer(); + } + require_once(XOOPS_ROOT_PATH.'/class/template.php'); $xoopsTpl = new XoopsTpl(); $xoopsTpl->clear_all_cache();