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

Change subject: Regression: Fix special pages on alpha
......................................................................


Regression: Fix special pages on alpha

The history link is not always present...

Change-Id: I98de3be8b29a0417269c6ae6dbbd10b91fa5f142
---
M includes/skins/SkinMobileAlpha.php
1 file changed, 5 insertions(+), 3 deletions(-)

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



diff --git a/includes/skins/SkinMobileAlpha.php 
b/includes/skins/SkinMobileAlpha.php
index cfb8d29..2799fd3 100644
--- a/includes/skins/SkinMobileAlpha.php
+++ b/includes/skins/SkinMobileAlpha.php
@@ -27,9 +27,11 @@
 
        protected function prepareHistoryLink( BaseTemplate $tpl ) {
                $revId = $this->getRevisionId();
-               $h = $tpl->data['historyLink'];
-               $h['href'] = SpecialPage::getTitleFor( 'MobileDiff', $revId 
)->getLocalUrl();
-               $tpl->set( 'historyLink', $h );
+               if ( isset( $tpl->data['historyLink'] ) ) {
+                       $h = $tpl->data['historyLink'];
+                       $h['href'] = SpecialPage::getTitleFor( 'MobileDiff', 
$revId )->getLocalUrl();
+                       $tpl->set( 'historyLink', $h );
+               }
        }
 
        protected function prepareTalkLabel( BaseTemplate $tpl ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I98de3be8b29a0417269c6ae6dbbd10b91fa5f142
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: JGonera <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to