Yurik has uploaded a new change for review.

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

Change subject: Removed isZeroSite()'s caching
......................................................................

Removed isZeroSite()'s caching

Change-Id: I1d1611d1f959bfd33cce8e5d42affd5a634faf77
---
M includes/PageRendering.php
1 file changed, 3 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ZeroBanner 
refs/changes/19/164519/1

diff --git a/includes/PageRendering.php b/includes/PageRendering.php
index 88bcb95..1dd2645 100644
--- a/includes/PageRendering.php
+++ b/includes/PageRendering.php
@@ -651,13 +651,9 @@
         * @return bool
         */
        private function isZeroSite() {
-               static $isZero = null;
-               if ( $isZero === null ) {
-                       $info = $this->getWikiInfo();
-                       // @FIXME: this check should only see if this is a 
mobileview, the rest is a check in partner's config
-                       $isZero = $info[2] === 'wikipedia' && 
MobileContext::singleton()->shouldDisplayMobileView();
-               }
-               return $isZero;
+               $info = $this->getWikiInfo();
+               // @FIXME: this check should only see if this is a mobileview, 
the rest is a check in partner's config
+               return $info[2] === 'wikipedia' && 
MobileContext::singleton()->shouldDisplayMobileView();
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d1611d1f959bfd33cce8e5d42affd5a634faf77
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ZeroBanner
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