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

Revision: 84608
Author:   junaidpv
Date:     2011-03-23 17:19:43 +0000 (Wed, 23 Mar 2011)
Log Message:
-----------
Narayam: Fix white space issue in r84597

Modified Paths:
--------------
    trunk/extensions/Narayam/Narayam.hooks.php

Modified: trunk/extensions/Narayam/Narayam.hooks.php
===================================================================
--- trunk/extensions/Narayam/Narayam.hooks.php  2011-03-23 17:19:23 UTC (rev 
84607)
+++ trunk/extensions/Narayam/Narayam.hooks.php  2011-03-23 17:19:43 UTC (rev 
84608)
@@ -9,23 +9,23 @@
 
        protected static $disabled = false;
 
-       public static function addModules($out, $skin) {
+       public static function addModules( $out, $skin ) {
                global $wgUser;
-               if ($wgUser->getOption('narayamDisable')) {
+               if ( $wgUser->getOption( 'narayamDisable' ) ) {
                        // User disabled Narayam
                        return true;
                }
-               $schemes = array_values(self::getSchemes ());
-               if (count($schemes)) {
-                       $out->addModules($schemes);
-                       $out->addModules('ext.narayam');
+               $schemes = array_values( self::getSchemes () );
+               if ( count( $schemes ) ) {
+                       $out->addModules( $schemes );
+                       $out->addModules( 'ext.narayam' );
                }
                return true;
        }
 
-       public static function addConfig(&$vars) {
+       public static function addConfig( &$vars ) {
                global $wgNarayamEnabledByDefault, $wgNarayamShortcutKey, 
$wgUser;
-               if ($wgUser->getOption('narayamDisable')) {
+               if ( $wgUser->getOption( 'narayamDisable' ) ) {
                        // User disabled Narayam
                        return true;
                }
@@ -35,9 +35,9 @@
                return true;
        }
 
-       public static function addVariables(&$vars) {
+       public static function addVariables( &$vars ) {
                global $wgUser;
-               if ($wgUser->getOption('narayamDisable')) {
+               if ( $wgUser->getOption( 'narayamDisable' ) ) {
                        // User disabled Narayam
                        return true;
                }
@@ -52,19 +52,19 @@
        protected static function getSchemes() {
                global $wgLanguageCode, $wgLang, $wgNarayamSchemes;
                $userlangCode = $wgLang->getCode();
-               $contlangSchemes = isset($wgNarayamSchemes[$wgLanguageCode]) ?
+               $contlangSchemes = isset( $wgNarayamSchemes[$wgLanguageCode] ) ?
                                $wgNarayamSchemes[$wgLanguageCode] : array();
-               $userlangSchemes = isset($wgNarayamSchemes[$userlangCode]) ?
+               $userlangSchemes = isset( $wgNarayamSchemes[$userlangCode] ) ?
                                $wgNarayamSchemes[$userlangCode] : array();
                return $userlangSchemes + $contlangSchemes;
        }
 
-       public static function addPreference($user, &$preferences) {
+       public static function addPreference( $user, &$preferences ) {
                // A checkbox in preferences to diable Narayam
                $preferences['narayamDisable'] = array(
                        'type' => 'toggle',
                        'label-message' => 'narayam-disable-preference', // a 
system message
-                       'section' => 'editing/advancedediting', // under 
'Advanced options' section of 'Editing' tab
+                       'section' => 'editing/advancedediting', // under 
'Advanced options' section of 'Editing' tab
                );
                return true;
        }


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

Reply via email to