Florianschmidtwelzow has uploaded a new change for review.

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

Change subject: Correctly determine if a license message should be printed or 
not
......................................................................

Correctly determine if a license message should be printed or not

Bug: T100663
Change-Id: I756e0bc8d43b4237b613ba305a937226bb996d25
---
M includes/skins/SkinMinerva.php
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php
index ffade0f..c37074b 100644
--- a/includes/skins/SkinMinerva.php
+++ b/includes/skins/SkinMinerva.php
@@ -1159,7 +1159,7 @@
                // Generate the licensing text displayed in the footer of each 
page.
                // See Skin::getCopyright for desktop equivalent.
                $license = self::getLicense( 'footer' );
-               if ( $license ) {
+               if ( $license['link'] ) {
                        $licenseText = $this->msg( 'mobile-frontend-copyright' 
)->rawParams( $license['link'] )->text();
                } else {
                        $licenseText = '';

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I756e0bc8d43b4237b613ba305a937226bb996d25
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.wel...@t-online.de>

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

Reply via email to