r68946 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68945‎ | r68946 | r68947 >
Date:14:53, 3 July 2010
Author:maxsem
Status:deferred
Tags:
Comment:
Wikilog: don't use deprecated Article::getDB()
Modified paths:
  • /trunk/extensions/Wikilog/WikilogMainPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikilog/WikilogMainPage.php
@@ -299,7 +299,7 @@
300300 */
301301 private function loadWikilogData() {
302302 if ( !$this->mWikilogDataLoaded ) {
303 - $dbr = $this->getDB();
 303+ $dbr = wfGetDB( DB_SLAVE );
304304 $data = $this->getWikilogDataFromId( $dbr, $this->getId() );
305305 if ( $data ) {
306306 $this->mWikilogSubtitle = unserialize( $data->wlw_subtitle );

Status & tagging log