From: Nick Jenkins Date: Fri, 12 Jan 2007 06:00:51 +0000 (+0000) Subject: Database update will work better if $dbw is initialized. X-Git-Tag: 1.31.0-rc.0~54479 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=9e163e903a5ee921f05b787d7193210ba2d8b344;p=lhc%2Fweb%2Fwiklou.git Database update will work better if $dbw is initialized. --- diff --git a/maintenance/storage/checkStorage.php b/maintenance/storage/checkStorage.php index 3d193b4ddc..0c0ab04237 100644 --- a/maintenance/storage/checkStorage.php +++ b/maintenance/storage/checkStorage.php @@ -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 ),