Index: trunk/extensions/Farmer/SpecialFarmer.php |
— | — | @@ -130,7 +130,7 @@ |
131 | 131 | $log->addEntry( 'create', $this->getTitle(), $reason, array( $name ) ); |
132 | 132 | |
133 | 133 | $wgOut->wrapWikiMsg( '== $1 ==', 'farmer-wikicreated' ); |
134 | | - $wgOut->addWikiMsg( 'farmer-wikicreated-text', $wikiObj->getUrl( wfUrlencode( wfMsgNoDB( 'mainpage' ) ) ) ); |
| 134 | + $wgOut->addWikiMsg( 'farmer-wikicreated-text', $wikiObj->getUrl( wfUrlencode( wfMessage( 'mainpage' )->inContentLanguage()->useDatabase( false )->plain() ) ) ); |
135 | 135 | $wgOut->addWikiMsg( 'farmer-default', '[[' . $title . ':Special:Farmer|Special:Farmer]]' ); |
136 | 136 | return; |
137 | 137 | } |
Index: trunk/extensions/Farmer/MediaWikiFarmer_Wiki.php |
— | — | @@ -464,7 +464,7 @@ |
465 | 465 | protected function _createMainPageForWiki() { |
466 | 466 | $db = $this->getDatabase(); |
467 | 467 | |
468 | | - $titleobj = Title::newFromText( wfMsgNoDB( 'mainpage' ) ); |
| 468 | + $titleobj = Title::newFromText( wfMessage( 'mainpage' )->inContentLanguage()->useDatabase( false )->plain() ); |
469 | 469 | $article = new Article( $titleobj ); |
470 | 470 | $newid = $article->insertOn( $db ); |
471 | 471 | $revision = new Revision( array( |