jenkins-bot has submitted this change and it was merged.

Change subject: Avoid fatal error for unknown groups with tux
......................................................................


Avoid fatal error for unknown groups with tux

Bug: 44162
Change-Id: Ibb603d147716aca6274d3061290b3770a3723daf
---
M specials/SpecialTranslate.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/specials/SpecialTranslate.php b/specials/SpecialTranslate.php
index 2631d15..497ee32 100644
--- a/specials/SpecialTranslate.php
+++ b/specials/SpecialTranslate.php
@@ -57,14 +57,14 @@
                }
 
                $this->setup( $parameters );
+               $isBeta = self::isBeta( $request );
 
-               if ( $this->options['group'] === '' ) {
+               if ( $this->options['group'] === '' || ( $isBeta && 
!$this->group ) ) {
                        $this->groupInformation();
                        return;
                }
 
                $errors = $this->getFormErrors();
-               $isBeta = self::isBeta( $request );
 
                if ( $isBeta ) {
                        $out->addHTML( Html::openElement( 'div', array(

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibb603d147716aca6274d3061290b3770a3723daf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to