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

Revision: 73816
Author:   tparscal
Date:     2010-09-27 15:59:58 +0000 (Mon, 27 Sep 2010)

Log Message:
-----------
* Improved on r73567, this makes WebRequest::getFuzzyBool case insensitive, 
making 'false', 'FALSE', 'FaLsE', etc to be boolean false
* Fixed syntax error in Skin.php

Modified Paths:
--------------
    trunk/phase3/includes/Skin.php
    trunk/phase3/includes/WebRequest.php

Modified: trunk/phase3/includes/Skin.php
===================================================================
--- trunk/phase3/includes/Skin.php      2010-09-27 15:51:47 UTC (rev 73815)
+++ trunk/phase3/includes/Skin.php      2010-09-27 15:59:58 UTC (rev 73816)
@@ -2046,7 +2046,7 @@
 
                return array(
                        'href' => $title->getLocalURL( $urlaction ),
-                       'exists' => $title->getArticleID() != 0;
+                       'exists' => $title->getArticleID() != 0,
                );
        }
 

Modified: trunk/phase3/includes/WebRequest.php
===================================================================
--- trunk/phase3/includes/WebRequest.php        2010-09-27 15:51:47 UTC (rev 
73815)
+++ trunk/phase3/includes/WebRequest.php        2010-09-27 15:59:58 UTC (rev 
73816)
@@ -358,7 +358,7 @@
         * @return Boolean
         */
        public function getFuzzyBool( $name, $default = false ) {
-               return $this->getBool( $name, $default ) && $this->getVal( 
$name ) !== 'false';
+               return $this->getBool( $name, $default ) && strcasecmp( 
$this->getVal( $name ), 'false' ) !== 0;
        }
 
        /**



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

Reply via email to