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 <[EMAIL PROTECTED]>                           |
 // +----------------------------------------------------------------------+
 //
-// $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
 ?>



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to