[xoops-cvslog 5831] CVS update: xoops2jp/html/modules/legacy/admin/class

Back to archive index

Minahito minah****@users*****
2006年 11月 13日 (月) 19:53:44 JST


Index: xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php
diff -u xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php:1.1.2.7 xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php:1.1.2.8
--- xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php:1.1.2.7	Mon Nov 13 19:48:36 2006
+++ xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php	Mon Nov 13 19:53:44 2006
@@ -136,7 +136,8 @@
 	function _uninstallPreferences()
 	{
 		Legacy_ModuleInstallUtils::uninstallAllOfConfigs($this->_mXoopsModule, $this->mLog);
-		Legacy_ModuleInstallUtils::uninstallAllOfNotifications($this->_mXoopsModule, $this->mLog);
+		Legacy_ModuleInstallUtils::deleteAllOfNotifications($this->_mXoopsModule, $this->mLog);
+		Legacy_ModuleInstallUtils::deleteAllOfComments($this->_mXoopsModule, $this->mLog);
 	}
 
 	function _processScript()
Index: xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php
diff -u xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php:1.1.2.8 xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php:1.1.2.9
--- xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php:1.1.2.8	Mon Nov 13 19:48:30 2006
+++ xoops2jp/html/modules/legacy/admin/class/ModuleInstallUtils.class.php	Mon Nov 13 19:53:44 2006
@@ -929,12 +929,19 @@
 		return $successFlag;
 	}
 	
-	function uninstallAllOfNotifications(&$module, &$log)
+	function deleteAllOfNotifications(&$module, &$log)
 	{
 		$handler =& xoops_gethandler('notification');
 		$criteria =& new Criteria('not_modid', $module->get('mid'));
 		$handler->deleteAll($criteria);
 	}
+
+	function deleteAllOfComments(&$module, &$log)
+	{
+		$handler =& xoops_gethandler('comment');
+		$criteria =& new Criteria('com_modid', $module->get('mid'));
+		$handler->deleteAll($criteria);
+	}
 }
 
 define('LEGACY_BLOCKINFOMATION_STATUS_LOADED', "loaded");


xoops-cvslog メーリングリストの案内
Back to archive index