* Add --help and --quiet options to parser test runner
[lhc/web/wiklou.git] / maintenance / compressOld.inc
index a438bfa..c88396b 100644 (file)
@@ -32,13 +32,14 @@ function compressOldPages( $start = 0 ) {
 }
 
 function compressPage( $row ) {
+       $fname = 'compressPage';
        if( false !== strpos( $row->old_flags, "gzip" ) ) {
                print "Already compressed row {$row->old_id}?\n";
                return false;
        }
        $dbw =& wfGetDB( DB_MASTER );
        $flags = $row->old_flags ? "{$row->old_flags},gzip" : "gzip";
-       $compress = $dbw->strencode( gzdeflate( $row->old_text ) );
+       $compress = gzdeflate( $row->old_text );
        $dbw->update( 'old', 
                array( /* SET */
                        'old_flags' => $flags,
@@ -47,7 +48,7 @@ function compressPage( $row ) {
                        'old_id' => $row->old_id
                ), $fname, 'LIMIT 1'
        );
-       return $res;
+       return true;
 }
 
 ?>