------------------------------------------------------------
revno: 1214
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Fri 2012-07-06 22:51:21 +0200
message:
  correct cache firm
modified:
  libs/Output.php


--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk

Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to 
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'libs/Output.php'
--- libs/Output.php	2012-05-29 13:07:53 +0000
+++ libs/Output.php	2012-07-06 20:51:21 +0000
@@ -416,7 +416,7 @@
 	 * be created and if exist, delete the obsolete cache file.
 	 *
 	 * @global    array         $config       global configuration options
-	 * @global    membership    $membership   global membership instance
+	 * @global    array         $aiki
 	 * @return    mixed
 	 *
 	 * @todo this function abuses php and has too many functions, simplify
@@ -425,12 +425,12 @@
 	 * @todo think good to rename this function too
 	 */
 	public function cache_file($type="html") {
-		global $config, $membership;
-
+		global $config, $aiki;
+		
 		if (isset($config[$type . '_cache'])
 			  && $config[$type . '_cache']
 			  && is_dir($config[$type . '_cache'])
-			  && !$membership->permissions) {
+			  && !$aiki->membership->permissions) {
 
 			$start = microtime(true); // require PHP5.
 
@@ -461,10 +461,10 @@
 					$time= sprintf("%4.f seconds", microtime(true)-$start);
 					switch ($type) {
 						case "html":
-							$message= "\n<!--Served From HTML Cache in $time";
+							$message= "\n<!--Served From HTML Cache in $time -->";
 							break;
 						case "css" :
-							$message= "\n/* Served From CSS Cache in $time";
+							$message= "\n/* Served From CSS Cache in $time */";
 							break;
 						default:
 							$message="";

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to