Nikerabbit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/99173


Change subject: Fix group passing to export tab, when underscores are used
......................................................................

Fix group passing to export tab, when underscores are used

Might happen for translatable pages. Fixed by getting a fixed
id from MessageGroups::get.

Change-Id: I34c0ca6f7c9ab553935d963fe57fc5a6cdd1517c
---
M specials/SpecialTranslate.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/73/99173/1

diff --git a/specials/SpecialTranslate.php b/specials/SpecialTranslate.php
index 085dd00..13e4da0 100644
--- a/specials/SpecialTranslate.php
+++ b/specials/SpecialTranslate.php
@@ -322,6 +322,9 @@
 
                $this->options = $nondefaults + $defaults;
                $this->group = MessageGroups::getGroup( $this->options['group'] 
);
+               if ( $this->group ) {
+                       $this->options['group'] = $this->group->getId();
+               }
                $this->task = TranslateTasks::getTask( $this->options['task'] );
 
                if ( $this->group && MessageGroups::isDynamic( $this->group ) ) 
{

-- 
To view, visit https://gerrit.wikimedia.org/r/99173
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I34c0ca6f7c9ab553935d963fe57fc5a6cdd1517c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to