Minahito
minah****@users*****
2006年 7月 25日 (火) 19:08:42 JST
Index: xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php diff -u xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.7 xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.8 --- xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.7 Sat Jul 1 16:24:17 2006 +++ xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php Tue Jul 25 19:08:42 2006 @@ -33,6 +33,15 @@ { $this->mDirname = $dirname; $this->mLog =& new Legacy_ModuleUtilsSimpleLog(); + + // + // Load message catalog for the required module installer of 'common' + // process. + // + $root =& XCube_Root::getSingleton(); + if (is_object($root->mLanguageManager)) { + $root->mLanguageManager->loadModuleAdminMessageCatalog('base'); + } } /** @@ -73,6 +82,12 @@ $this->_processReport(); return false; } + + $this->_installNotification(); + if (!$this->mForceMode && $this->mLog->hasError()) { + $this->_processReport(); + return false; + } $this->_installPreference(); if (!$this->mForceMode && $this->mLog->hasError()) { @@ -131,6 +146,16 @@ } /** + * Install or uninstall notifications, this member function is called by + * own execute(). + * + * @access protected + */ + function _installNotification() + { + } + + /** * Install or uninstall blocks and their preference, this function is called by own execute(). */ function _installPreference()