Yurik has uploaded a new change for review.

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


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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ZeroRatedMobileAccess 
refs/changes/86/96586/1

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: newchange
Gerrit-Change-Id: I291247bc54f302c1270b6700f1da0b358f451a2f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ZeroRatedMobileAccess
Gerrit-Branch: master
Gerrit-Owner: Yurik <[email protected]>

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

Reply via email to