r83025 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83024‎ | r83025 | r83026 >
Date:18:17, 1 March 2011
Author:kipcool
Status:deferred
Tags:
Comment:
Removed the part where it looks for a page translated in the user language when available. Extension Polyglot does it better.
Modified paths:
  • /trunk/extensions/Wikidata/App.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/App.php
@@ -256,25 +256,8 @@
257257
258258 function efWikidataOverrideArticle( &$title, &$article ) {
259259 global $wgLang, $wgRequest, $wgOut ;
260 - if ( wdIsWikidataNs() ) {
261 - $article = new WikidataArticle( $title );
262 - return true ;
263 - }
264 -
265 - if ($wgRequest->getVal( 'redirect' ) == 'no') {
266 - return true;
267 - }
268 -
269 - // finds if there is a translation of the page in the user language
270 - $lang = $wgLang->getCode();
271 - $n = $title->getDBkey();
272 - $ns = $title->getNamespace();
273 - $t = Title::makeTitle( $ns, $n . '/' . $lang );
274 -
275 - if ( $t->exists() ) {
276 - $title = $t ;
277 - }
278 - return true;
 260+ if ( wdIsWikidataNs() ) $article = new WikidataArticle( $title );
 261+ return true ;
279262 }
280263
281264 function efWikidataOverrideEditPage( $article, $user ) {

Status & tagging log