Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Typo in German documentation

 
Post new topic   Reply to topic    Smarty Forum Index -> Documentation
View previous topic :: View next topic  
Author Message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4509
Location: Hamburg / Germany

PostPosted: Sun Jun 15, 2008 10:13 pm    Post subject: Typo in German documentation Reply with quote

The example at http://www.smarty.net/manual/de/section.template.cache.handler.func.php does contain typos.

It must be $cache_content not $cache_contents.

Code:
   case 'read':

      // Cache aus der Datenbank lesen
      $results = mysql_query("select CacheContents from CACHE_PAGES where CacheID='$CacheID'");
      if(!$results) {
     $smarty_obj->_trigger_error_msg("cache_handler: query failed.");
      }
      $row = mysql_fetch_array($results,MYSQL_ASSOC);
     
      if($use_gzip && function_exists("gzuncompress")) {
     $cache_content = gzuncompress($row["CacheContents"]);
      } else {
     $cache_content = $row["CacheContents"];
      }
      $return = $results;
      break;
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Documentation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP