$dbr was undefined
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 11 Sep 2010 15:48:21 +0000 (15:48 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 11 Sep 2010 15:48:21 +0000 (15:48 +0000)
includes/MessageBlobStore.php

index 51f3f72..cc8543f 100644 (file)
@@ -84,6 +84,7 @@ class MessageBlobStore {
                if ( $success ) {
                        if ( $dbw->affectedRows() == 0 ) {
                                // Blob was already present, fetch it
+                               $dbr = wfGetDB( DB_SLAVE );
                                $blob = $dbr->selectField( 'msg_resource', 'mr_blob', array(
                                                'mr_resource' => $module,
                                                'mr_lang' => $lang,