Santhosh has uploaded a new change for review.

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


Change subject: Fix the HTML validation error when language is blacklisted
......................................................................

Fix the HTML validation error when language is blacklisted

After error message about blacklisting is shown the container div
was not closed and method was returning. Caused broken layout in
monobook skin

Bug: 46831
Change-Id: I751c40790b20aa7ef2cefef7844311a9f57fa9fa
---
M specials/SpecialTranslate.php
1 file changed, 4 insertions(+), 1 deletion(-)


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

diff --git a/specials/SpecialTranslate.php b/specials/SpecialTranslate.php
index cf72f20..8c13ab8 100644
--- a/specials/SpecialTranslate.php
+++ b/specials/SpecialTranslate.php
@@ -90,7 +90,10 @@
                                if ( isset( 
$wgTranslateBlacklist[$check][$this->options['language']] ) ) {
                                        $reason = 
$wgTranslateBlacklist[$check][$this->options['language']];
                                        $out->addWikiMsg( 
'translate-page-disabled', $reason );
-
+                                       if ( $isBeta ) {
+                                               // Close 
div.ext-translate-container
+                                               $out->addHTML( 
Html::closeElement( 'div' ) );
+                                       }
                                        return;
                                }
                        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I751c40790b20aa7ef2cefef7844311a9f57fa9fa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

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

Reply via email to