NobuNobu
nobun****@users*****
2006年 11月 1日 (水) 00:03:39 JST
Index: xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php diff -u xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.7 xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.8 --- xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.7 Tue Oct 31 16:04:22 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php Wed Nov 1 00:03:39 2006 @@ -154,7 +154,7 @@ ksort($this->_mMilestone); foreach ($this->_mMilestone as $t_version => $t_value) { - if ($t_version > $this->_mCurrentVersion) { + if ($t_version > $this->getCurrentVersion()) { return $t_version; } } @@ -170,7 +170,7 @@ ksort($this->_mMilestone); foreach ($this->_mMilestone as $t_version => $t_value) { - if ($t_version >= $this->_mCurrentVersion) { + if ($t_version >= $this->getCurrentVersion()) { if (is_callable(array($this, $t_value))) { return true; } @@ -192,7 +192,7 @@ ksort($this->_mMilestone); foreach ($this->_mMilestone as $t_version => $t_value) { - if ($t_version > $this->_mCurrentVersion) { + if ($t_version > $this->getCurrentVersion()) { if (is_callable(array($this, $t_value))) { return $this->$t_value(); } @@ -236,7 +236,7 @@ require_once XOOPS_MODULE_PATH . "/" . $module->getVar('dirname') . "/" . $installScript; $funcName = 'xoops_module_update_' . $module->getVar('dirname'); if (function_exists($funcName)) { - if (!call_user_func($funcName, $module, $this->mPreVersion)) { + if (!call_user_func($funcName, $module, $this->getCurrentVersion())) { $log->addError("Failed to execute " . $funcName); } }