Jdlrobson has uploaded a new change for review.

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


Change subject: Bug 50681: Don't duplicate the message
......................................................................

Bug 50681: Don't duplicate the message

Bug: 50681
Change-Id: I38781ff7a96863c8bd2fa40d342ff65b2fcbd1e2
---
M MobileFrontend.i18n.php
M includes/specials/SpecialMobileWatchlist.php
2 files changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/44/71944/1

diff --git a/MobileFrontend.i18n.php b/MobileFrontend.i18n.php
index e984d7d..52026c4 100644
--- a/MobileFrontend.i18n.php
+++ b/MobileFrontend.i18n.php
@@ -172,7 +172,6 @@
 
        'mobile-frontend-watchlist-a-z' => 'All',
        'mobile-frontend-watchlist-feed' => 'Modified',
-       'mobile-frontend-watchlist-a-z-empty' => 'You are currently not 
watching any pages.',
        'mobile-frontend-watchlist-a-z-empty-howto-alt' => 'Click the star at 
the top of the page',
        'mobile-frontend-watchlist-a-z-empty-howto' => 'You are not currently 
watching any pages. Your watchlist helps you keep track of the pages that you 
are interested in. Watch pages by tapping the star icon.',
        'mobile-frontend-watchlist-feed-empty' => 'There are no pages with 
recent changes.',
diff --git a/includes/specials/SpecialMobileWatchlist.php 
b/includes/specials/SpecialMobileWatchlist.php
index 4a409c9..16c9e8a 100644
--- a/includes/specials/SpecialMobileWatchlist.php
+++ b/includes/specials/SpecialMobileWatchlist.php
@@ -377,7 +377,7 @@
        function showEmptyList( $feed ) {
                global $wgExtensionAssetsPath;
                $output = $this->getOutput();
-               $msg = $feed ? 'mobile-frontend-watchlist-feed-empty' : 
'mobile-frontend-watchlist-a-z-empty';
+               $msg = $feed ? Html::element( 'p', null, wfMessage( 
'mobile-frontend-watchlist-feed-empty' )->plain() ) : '';
                $dir = $this->getLanguage()->isRTL() ? 'rtl' : 'ltr';
 
                // FIXME: This is necessary until new nav pushed to beta
@@ -389,7 +389,7 @@
 
                $output->addHtml(
                                Html::openElement( 'div', array( 'class' => 
'info' ) ) .
-                               Html::element( 'p', null, wfMessage( $msg 
)->plain() ) .
+                               $msg .
                                Html::element( 'p', null, wfMessage( 
'mobile-frontend-watchlist-a-z-empty-howto' )->plain() ) .
                                Html::element( 'img', array(
                                        'src' => $imgUrl,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I38781ff7a96863c8bd2fa40d342ff65b2fcbd1e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

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

Reply via email to