jenkins-bot has submitted this change and it was merged.
Change subject: Minor fix of the special case when executing from
shell/contrived environment.
......................................................................
Minor fix of the special case when executing from shell/contrived environment.
Change-Id: I291247bc54f302c1270b6700f1da0b358f451a2f
---
M includes/PageRenderingHooks.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Dr0ptp4kt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/PageRenderingHooks.php b/includes/PageRenderingHooks.php
index e962d21..dd82dfe 100644
--- a/includes/PageRenderingHooks.php
+++ b/includes/PageRenderingHooks.php
@@ -144,7 +144,7 @@
$this->title = $context->getTitle();
$this->lang = $context->getLanguage();
}
- $this->isZeroSpecial = $this->title->isSpecial(
'ZeroRatedMobileAccess' );
+ $this->isZeroSpecial = $this->title ? $this->title->isSpecial(
'ZeroRatedMobileAccess' ) : false;
// Allow URL override for testing purposes
$sd = $this->request->getVal( 'X-SUBDOMAIN' );
--
To view, visit https://gerrit.wikimedia.org/r/96586
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I291247bc54f302c1270b6700f1da0b358f451a2f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ZeroRatedMobileAccess
Gerrit-Branch: master
Gerrit-Owner: Yurik <[email protected]>
Gerrit-Reviewer: Dr0ptp4kt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits