Index: trunk/extensions/Narayam/Narayam.hooks.php |
— | — | @@ -106,9 +106,8 @@ |
107 | 107 | * @return bool |
108 | 108 | */ |
109 | 109 | public static function addDefaultOptions( &$defaultOptions ) { |
110 | | - global $wgNarayamEnabledByDefault; |
111 | | - // By default, the preference page option to enable Narayam is set to wgNarayamEnabledByDefault value. |
112 | | - $defaultOptions['narayamEnable'] = $wgNarayamEnabledByDefault; |
| 110 | + global $wgNarayamPreferenceDefaultValue; |
| 111 | + $defaultOptions['narayamEnable'] = $wgNarayamPreferenceDefaultValue; |
113 | 112 | return true; |
114 | 113 | } |
115 | 114 | } |
Index: trunk/extensions/Narayam/resources/ext.narayam.core.js |
— | — | @@ -460,7 +460,7 @@ |
461 | 461 | /** |
462 | 462 | * Set up Narayam. This adds the scheme dropdown, binds the handlers |
463 | 463 | * and initializes the enabled/disabled state and selected scheme |
464 | | - * from a cookie or wgNarayamEnableByDefault |
| 464 | + * from a cookie or wgNarayamEnabledByDefault |
465 | 465 | */ |
466 | 466 | this.setup = function() { |
467 | 467 | that.buildMenu(); |
Index: trunk/extensions/Narayam/Narayam.php |
— | — | @@ -174,7 +174,7 @@ |
175 | 175 | // Autoloader |
176 | 176 | $wgAutoloadClasses['NarayamHooks'] = $dir . '/Narayam.hooks.php'; |
177 | 177 | |
178 | | -$wgNarayamEnabledByDefault = true; |
| 178 | +$wgNarayamPreferenceDefaultValue = true; |
179 | 179 | |
180 | 180 | // ResourceLoader module registration |
181 | 181 | $narayamTpl = array( |