Removed hardcodes for Zh-conversion
[lhc/web/wiklou.git] / includes / CacheManager.php
index e85f69d..1a5711b 100644 (file)
@@ -1,18 +1,27 @@
 <?php
+/**
+ * Contain the CacheManager class
+ * @package MediaWiki
+ */
 
-# Handles talking to the file cache, putting stuff in and taking it back out.
-# Mostly called from Article.php, also from DatabaseFunctions.php for the
-# emergency abort/fallback to cache.
-
-# Global options that affect this module:
-# $wgCachePages
-# $wgCacheEpoch
-# $wgUseFileCache
-# $wgFileCacheDirectory
-# $wgUseGzip
-
+/**
+ * We need the title class
+ */
 require_once( 'Title.php' );
 
+/**
+ * Handles talking to the file cache, putting stuff in and taking it back out.
+ * Mostly called from Article.php, also from DatabaseFunctions.php for the
+ * emergency abort/fallback to cache.
+ * 
+ * Global options that affect this module:
+ * $wgCachePages
+ * $wgCacheEpoch
+ * $wgUseFileCache
+ * $wgFileCacheDirectory
+ * $wgUseGzip
+ * @package MediaWiki 
+ */
 class CacheManager {
        var $mTitle, $mFileCache;
        
@@ -110,7 +119,8 @@ class CacheManager {
                if(!file_exists($mydir2)) { mkdir($mydir2,0775); }
        }
        
-       function saveToFileCache( $text ) {
+       function saveToFileCache( $origtext ) {
+               $text = $origtext;
                if(strcmp($text,'') == 0) return '';
                
                wfDebug(" saveToFileCache()\n", false);