r112999 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112998‎ | r112999 | r113000 >
Date:05:01, 5 March 2012
Author:santhosh
Status:ok
Tags:
Comment:
Remove trailing comma from the list of languages entered as priority languages.
Modified paths:
  • /trunk/extensions/Translate/tag/SpecialPageTranslation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php
@@ -693,7 +693,7 @@
694694
695695 protected function handlePriorityLanguages( WebRequest $request, TranslatablePage $page, User $user ) {
696696 // new priority languages
697 - $npLangs = trim( $request->getVal( 'prioritylangs' ) );
 697+ $npLangs = rtrim( trim( $request->getVal( 'prioritylangs' ) ), ',' );
698698 $npForce = $request->getCheck( 'forcelimit' ) ? 'on' : 'off';
699699 $npReason = trim( $request->getText( 'priorityreason' ) );
700700

Status & tagging log