r85309 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85308‎ | r85309 | r85310 >
Date:03:10, 4 April 2011
Author:nikola
Status:deferred
Tags:
Comment:
- rm unnecessary strtr()
- Edit links now go directly to page editing.
Modified paths:
  • /trunk/extensions/Interlanguage/InterlanguageExtension.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Interlanguage/InterlanguageExtension.php
@@ -307,8 +307,8 @@
308308 if( count( $pagelinks ) ) {
309309 $linker = new Linker();
310310 foreach( $pagelinks as $page => $dummy ) {
311 - $title = Title::newFromText( $wgInterlanguageExtensionInterwiki . strtr( $this->translateNamespace( $page ), '_', ' ') );
312 - $link = $linker->link( $title, $text? $text: $page );
 311+ $title = Title::newFromText( $wgInterlanguageExtensionInterwiki . $this->translateNamespace( $page ) );
 312+ $link = $linker->link( $title, $text? $text: $page, array(), array( 'action' => 'edit' ) );
313313 if( strlen( $link ) ) {
314314 $pagelinktexts[] = $link;
315315 }

Status & tagging log