Index: trunk/extensions/WikimediaIncubator/WikimediaIncubator.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | 'path' => __FILE__, |
12 | 12 | 'name' => 'Wikimedia Incubator', |
13 | 13 | 'author' => 'SPQRobin', |
14 | | - 'version' => '2.3.1', |
| 14 | + 'version' => '2.3.2', |
15 | 15 | 'url' => 'http://www.mediawiki.org/wiki/Extension:WikimediaIncubator', |
16 | 16 | 'description' => 'Test wiki features for Wikimedia Incubator', |
17 | 17 | 'descriptionmsg' => 'wminc-desc', |
Index: trunk/extensions/WikimediaIncubator/IncubatorTest.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | class IncubatorTest |
8 | 8 | { |
9 | 9 | static function onGetPreferences( $user, &$preferences ) { |
10 | | - global $wmincPref, $wmincPrefProject, $wmincPrefNone; |
| 10 | + global $wmincPref, $wmincPrefProject, $wmincPrefNone, $wgDefaultUserOptions; |
11 | 11 | |
12 | 12 | $preferences['language']['help-message'] = 'wminc-prefinfo-language'; |
13 | 13 | |
— | — | @@ -30,6 +30,8 @@ |
31 | 31 | 'validation-callback' => array( 'IncubatorTest', 'CodeValidation' ), |
32 | 32 | ); |
33 | 33 | |
| 34 | + $wgDefaultUserOptions[$wmincPref . '-project'] = 'none'; |
| 35 | + |
34 | 36 | $preferences = wfArrayInsertAfter( $preferences, $prefinsert, 'language' ); |
35 | 37 | |
36 | 38 | return true; |