r109744 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109743‎ | r109744 | r109745 >
Date:19:09, 22 January 2012
Author:siebrand
Status:ok
Tags:
Comment:
Open the Translate help page in a new tab/window.
Modified paths:
  • /trunk/extensions/Translate/TranslateUtils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateUtils.php
@@ -4,7 +4,7 @@
55 *
66 * @file
77 * @author Niklas Laxström
8 - * @copyright Copyright © 2007, 2009 Niklas Laxström
 8+ * @copyright Copyright © 2007, 2012 Niklas Laxström
99 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
1010 */
1111
@@ -318,7 +318,13 @@
319319 public static function addSpecialHelpLink( OutputPage $out, /*string*/$to ) {
320320 $out->addModules( 'ext.translate.helplink' );
321321 $text = wfMessage( 'translate-gethelp' )->escaped();
322 - $link = Html::rawElement( 'a', array( 'href' => "//www.mediawiki.org/wiki/Special:MyLanguage/$to" ), "$text" );
 322+ $link = Html::rawElement(
 323+ 'a',
 324+ array(
 325+ 'href' => "//www.mediawiki.org/wiki/Special:MyLanguage/$to",
 326+ 'target' => '_blank'
 327+ ),
 328+ "$text" );
323329 $wrapper = Html::rawElement( 'div', array( 'class' => 'mw-translate-helplink' ), $link );
324330 $out->addHtml( $wrapper );
325331 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r110310MFT 1.18wmf1 r108719 r108793 r108804 r108805 r109019 r109744 r109745 r109747 ...nikerabbit18:11, 30 January 2012

Status & tagging log