* Improved on r73567, this makes WebRequest::getFuzzyBool case insensitive, making...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 27 Sep 2010 15:59:58 +0000 (15:59 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 27 Sep 2010 15:59:58 +0000 (15:59 +0000)
* Fixed syntax error in Skin.php

includes/Skin.php
includes/WebRequest.php

index f7520fe..8fd1d73 100644 (file)
@@ -2046,7 +2046,7 @@ class Skin extends Linker {
 
                return array(
                        'href' => $title->getLocalURL( $urlaction ),
-                       'exists' => $title->getArticleID() != 0;
+                       'exists' => $title->getArticleID() != 0,
                );
        }
 
index 09eded6..37be786 100644 (file)
@@ -358,7 +358,7 @@ class WebRequest {
         * @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;
        }
 
        /**