Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -11,8 +11,8 @@ |
12 | 12 | if (self::$defaultPreferences) |
13 | 13 | return self::$defaultPreferences; |
14 | 14 | |
15 | | - global $wgLang, $wgRCMaxAge; |
16 | | - |
| 15 | + global $wgRCMaxAge; |
| 16 | + |
17 | 17 | $defaultPreferences = array(); |
18 | 18 | |
19 | 19 | self::profilePreferences( $user, $defaultPreferences ); |
— | — | @@ -26,9 +26,9 @@ |
27 | 27 | self::watchlistPreferences( $user, $defaultPreferences ); |
28 | 28 | self::searchPreferences( $user, $defaultPreferences ); |
29 | 29 | self::miscPreferences( $user, $defaultPreferences ); |
30 | | - |
| 30 | + |
31 | 31 | wfRunHooks( 'GetPreferences', array( $user, &$defaultPreferences ) ); |
32 | | - |
| 32 | + |
33 | 33 | ## Prod in defaults from the user |
34 | 34 | global $wgDefaultUserOptions; |
35 | 35 | foreach( $defaultPreferences as $name => &$info ) { |