Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/71131
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/31/71131/1
diff --git a/includes/skins/SkinMobileAlpha.php
b/includes/skins/SkinMobileAlpha.php
index cfb8d29..a4a70c6 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: newchange
Gerrit-Change-Id: I98de3be8b29a0417269c6ae6dbbd10b91fa5f142
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