cvs: php4 /pear/Cache Output.php

From: Date: Fri, 02 Mar 2001 14:46:01 +0000
Subject: cvs: php4 /pear/Cache Output.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4344@lists.php.net to get a copy of this message
chregu Fri Mar 2 06:46:01 2001 EDT Modified files: /php4/pear/Cache Output.php Log: Wrong order of Parameters in $this->container->save(); and $this->cache_id instead of $this->id on the same line Index: php4/pear/Cache/Output.php diff -u php4/pear/Cache/Output.php:1.3 php4/pear/Cache/Output.php:1.4 --- php4/pear/Cache/Output.php:1.3 Fri Mar 2 02:39:36 2001 +++ php4/pear/Cache/Output.php Fri Mar 2 06:46:01 2001 @@ -17,7 +17,7 @@ // | Vinai Kopp <kopp@netzarbeiter.de> | // +----------------------------------------------------------------------+ // -// $Id: Output.php,v 1.3 2001/03/02 10:39:36 sbergmann Exp $ +// $Id: Output.php,v 1.4 2001/03/02 14:46:01 chregu Exp $ require_once'Cache.php'; @@ -98,12 +98,12 @@ function start($id) { if ($this->no_cache) return ""; - - // this is already cached return it from the cache so that the user + + // this is already cached return it from the cache so that the user // can use the cache content and stop script execution if ($content = $this->get($id)) return $content; - + // remember some data to be able to fill the cache on calling end() $this->cache_id = $id; @@ -113,7 +113,7 @@ return ""; } // end func start - + /* * Stores the content of the output buffer into the cache and returns the content. * @@ -129,8 +129,8 @@ // store in the cache if (!$this->no_cache) - $this->container->save($content, $this->id, $expire); - + $this->container->save($this->cache_id,$content, $expire); + return $content; } // end func end() @@ -141,10 +141,10 @@ */ function endPrint($expire = 0) { - print $this->end($expire); + print $this->end($expire); } // end func endPrint - + } // end class output ?>

« previous php.cvs (#4344) next »