[xoops-cvslog 4848] CVS update: xoops2jp/html/modules/stdCache/blocks

Back to archive index

Minahito minah****@users*****
2006年 10月 7日 (土) 15:39:57 JST


Index: xoops2jp/html/modules/stdCache/blocks/cacheclear.php
diff -u xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1 xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1.2.1
--- xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1	Fri Jan  6 12:04:26 2006
+++ xoops2jp/html/modules/stdCache/blocks/cacheclear.php	Sat Oct  7 15:39:57 2006
@@ -3,15 +3,15 @@
 function Stdcache_cacheclear_show()
 {
 	$root =& XCube_Root::getSingleton();
-	$cache =& $root->getCacheSystem();
-	if (!$cache->enableCache()) {
+	
+	if (!$root->mController->isEnableCacheFeature()) {
 		return false;
 	}
-
+	
 	if($handler = opendir(XOOPS_CACHE_PATH)) {
 		while(($file = readdir($handler)) !== false) {
 			if(preg_match("/\w+\.cache\.html$/", $file, $matches)) {
-				@unlink($matches[0]);
+				@unlink(XOOPS_CACHE_PATH . "/" . $matches[0]);
 			}
 		}
 		closedir($handler);


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