Database update will work better if $dbw is initialized.
authorNick Jenkins <nickj@users.mediawiki.org>
Fri, 12 Jan 2007 06:00:51 +0000 (06:00 +0000)
committerNick Jenkins <nickj@users.mediawiki.org>
Fri, 12 Jan 2007 06:00:51 +0000 (06:00 +0000)
maintenance/storage/checkStorage.php

index 3d193b4..0c0ab04 100644 (file)
@@ -455,6 +455,7 @@ class CheckStorage
                $flags = Revision::compressRevisionText( $text );
 
                // Update the text row
+               $dbw =& wfGetDB( DB_MASTER );
                $dbw->update( 'text', 
                        array( 'old_flags' => $flags, 'old_text' => $text ),
                        array( 'old_id' => $oldId ),