http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72311

Revision: 72311
Author:   tparscal
Date:     2010-09-03 21:14:45 +0000 (Fri, 03 Sep 2010)

Log Message:
-----------
Using is_null rather than !isset

Modified Paths:
--------------
    branches/resourceloader/phase3/includes/ResourceLoaderContext.php

Modified: branches/resourceloader/phase3/includes/ResourceLoaderContext.php
===================================================================
--- branches/resourceloader/phase3/includes/ResourceLoaderContext.php   
2010-09-03 21:08:16 UTC (rev 72310)
+++ branches/resourceloader/phase3/includes/ResourceLoaderContext.php   
2010-09-03 21:14:45 UTC (rev 72311)
@@ -81,12 +81,12 @@
                return $this->only;
        }
        public function shouldIncludeScripts() {
-               return !isset( $this->only ) || $this->only === 'scripts';
+               return is_null( $this->only ) || $this->only === 'scripts';
        }
        public function shouldIncludeStyles() {
-               return !isset( $this->only ) || $this->only === 'styles';
+               return is_null( $this->only ) || $this->only === 'styles';
        }
        public function shouldIncludeMessages() {
-               return !isset( $this->only ) || $this->only === 'messages';
+               return is_null( $this->only ) || $this->only === 'messages';
        }
 }
\ No newline at end of file



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

Reply via email to