From: <w4...@us...> - 2002-09-25 20:41:50
|
Update of /cvsroot/xoops/xoops-current/html/class In directory usw-pr-cvs1:/tmp/cvs-serv2354/html/class Modified Files: xoopsmodule.php Log Message: no comment Index: xoopsmodule.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/class/xoopsmodule.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** xoopsmodule.php 24 Sep 2002 18:28:33 -0000 1.5 --- xoopsmodule.php 25 Sep 2002 20:41:47 -0000 1.6 *************** *** 38,42 **** var $errors = array(); var $adminmenu = array(); ! // these table cannot be installed nor uninstalled // this is a very dirty workaround...may need to find a better method --- 38,42 ---- var $errors = array(); var $adminmenu = array(); ! // these table cannot be installed nor uninstalled // this is a very dirty workaround...may need to find a better method *************** *** 172,176 **** // [4] contains unprefixed table name $prefixed_query = $this->db->prefixQuery($piece); ! // check if the table name is reserved if ( !$prefixed_query ) { array_push($this->errors,"$piece is not a valid SQL!"); --- 172,176 ---- // [4] contains unprefixed table name $prefixed_query = $this->db->prefixQuery($piece); ! // check if the table name is reserved if ( !$prefixed_query ) { array_push($this->errors,"$piece is not a valid SQL!"); *************** *** 178,182 **** break; } ! // check if the table name is reserved if ( !in_array($prefixed_query[4], $this->reservedTables) ) { // not reserved, so try to create one --- 178,182 ---- break; } ! // check if the table name is reserved if ( !in_array($prefixed_query[4], $this->reservedTables) ) { // not reserved, so try to create one *************** *** 219,223 **** $this->modinfo['hasSearch'] = 0; } ! if ( !isset($this->weight) || !is_numeric($this->weight) ) { $this->weight = 1; } --- 219,223 ---- $this->modinfo['hasSearch'] = 0; } ! if ( !isset($this->weight) || !is_numeric($this->weight) ) { $this->weight = 1; } *************** *** 685,689 **** $xoopsTpl->setTemplateDir(XOOPS_ROOT_PATH.'/themes/'.$xoopsConfig['default_theme']); for ($i = 0; $i < $count; $i++) { ! $xoopsTpl->clear_cache('file:'.XOOPS_ROOT_PATH.'/themes/'.$xoopsConfig['default_theme'].'/blocks/'.$block_arr[$i]->getVar('btemplate'), 'block'.$block_arr[$i]->getVar('bid')) } } --- 685,689 ---- $xoopsTpl->setTemplateDir(XOOPS_ROOT_PATH.'/themes/'.$xoopsConfig['default_theme']); for ($i = 0; $i < $count; $i++) { ! $xoopsTpl->clear_cache('file:'.XOOPS_ROOT_PATH.'/themes/'.$xoopsConfig['default_theme'].'/blocks/'.$block_arr[$i]->getVar('btemplate'), 'block'.$block_arr[$i]->getVar('bid')); } } |