Update of /cvsroot/xoops/xoops-current/html/class
In directory usw-pr-cvs1:/tmp/cvs-serv26176
Modified Files:
xoopsmodule.php
Log Message:
no message
Index: xoopsmodule.php
===================================================================
RCS file: /cvsroot/xoops/xoops-current/html/class/xoopsmodule.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** xoopsmodule.php 18 Sep 2002 16:34:13 -0000 1.3
--- xoopsmodule.php 22 Sep 2002 06:02:04 -0000 1.4
***************
*** 153,161 ****
*/
function install($create_tbl=true){
- global $xoopsConfig;
$error = false;
if ($create_tbl != false) {
if ( !empty($this->modinfo['sqlfile']) && is_array($this->modinfo['sqlfile']) ) {
! $sql_file_path = XOOPS_ROOT_PATH."/modules/".$this->dirname()."/".$this->modinfo['sqlfile'][$xoopsConfig['database']]."";
if ( !file_exists($sql_file_path) ) {
array_push($this->errors,"SQL file not found at $sql_file_path!");
--- 153,160 ----
*/
function install($create_tbl=true){
$error = false;
if ($create_tbl != false) {
if ( !empty($this->modinfo['sqlfile']) && is_array($this->modinfo['sqlfile']) ) {
! $sql_file_path = XOOPS_ROOT_PATH."/modules/".$this->dirname()."/".$this->modinfo['sqlfile'][XOOPS_DB_TYPE]."";
if ( !file_exists($sql_file_path) ) {
array_push($this->errors,"SQL file not found at $sql_file_path!");
***************
*** 555,559 ****
function &search($term="", $andor="AND", $limit=0, $offset=0, $userid=0){
- global $xoopsConfig;
if (!isset($this->modinfo['hasSearch']) || !$this->modinfo['hasSearch'] || !isset($this->modinfo['search']['func']) || !isset($this->modinfo['search']['file']) || $this->modinfo['search']['func'] == "" || $this->modinfo['search']['file'] == "" ) {
return false;
--- 554,557 ----
***************
*** 575,579 ****
function loadAdminMenu() {
- global $xoopsConfig;
if ( isset($this->modinfo['adminmenu']) && $this->modinfo['adminmenu'] != "" && file_exists(XOOPS_ROOT_PATH."/modules/".$this->dirname()."/".$this->modinfo['adminmenu']) ) {
include_once(XOOPS_ROOT_PATH."/modules/".$this->dirname()."/".$this->modinfo['adminmenu']);
--- 573,576 ----
|