[xoops-cvslog 1310] CVS update: xoops2jp/html/modules/base/admin/class

Back to archive index

Minahito minah****@users*****
2005年 12月 21日 (水) 13:08:57 JST


Index: xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php
diff -u xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.3
--- xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.2	Mon Dec 19 23:00:16 2005
+++ xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php	Wed Dec 21 13:08:57 2005
@@ -18,8 +18,14 @@
 		$moduleHandler =& xoops_gethandler('module');
 		$module =& $moduleHandler->getByDirname($dirname);
 
-		if (!is_object($module))
+		if (!is_object($module)) {
+			$this->mLog->addError("*Module not found*");
 			return $ret;
+		}
+		
+		if ($module->getVar('isactive') == 0) {
+			$this->mLog->addError("*For uninstall, turn off the active-status of the module.*");
+		}
 
 		return $module;
 	}


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