some basic quotes
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 15 Jan 2006 23:14:48 +0000 (23:14 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 15 Jan 2006 23:14:48 +0000 (23:14 +0000)
includes/Wiki.php

index 70aa25c..407a3b6 100644 (file)
@@ -28,7 +28,7 @@ class MediaWiki {
         * Retieves key/value pairs to circumvent global variables
         * Note that keys are case-insensitive!
         */
-       function getVal( $key, $default = "" ) {
+       function getVal( $key, $default = '' ) {
                $key = strtolower( $key );
                if( isset( $this->params[$key] ) ) {
                        return $this->params[$key];
@@ -101,7 +101,7 @@ class MediaWiki {
                        // Do this above the read whitelist check for security...
                        $title = Title::makeTitle( NS_SPECIAL, 'Search' );
                }
-               $this->setVal( "Search", $search );
+               $this->setVal( 'Search', $search );
 
                # If the user is not logged in, the Namespace:title of the article must be in
                # the Read array in order for the user to see it. (We have to check here to
@@ -289,7 +289,7 @@ class MediaWiki {
                $action = $this->getVal('Action');
                if( in_array( $action, $this->getVal('DisabledActions',array()) ) ) {
                        /* No such action; this will switch to the default case */
-                       $action = "nosuchaction"; 
+                       $action = 'nosuchaction';
                }
 
                switch( $action ) {