Index: trunk/extensions/Wikidata/App.php |
— | — | @@ -256,25 +256,8 @@ |
257 | 257 | |
258 | 258 | function efWikidataOverrideArticle( &$title, &$article ) { |
259 | 259 | 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 ; |
279 | 262 | } |
280 | 263 | |
281 | 264 | function efWikidataOverrideEditPage( $article, $user ) { |