Index: branches/preferences-work/extensions/CentralAuth/CentralAuthUser.php |
— | — | @@ -222,9 +222,11 @@ |
223 | 223 | |
224 | 224 | $insert_rows = array(); |
225 | 225 | |
| 226 | + global $wgCentralAuthPropertySaveWhitelist; |
226 | 227 | foreach( $this->mProperties as $key => $value ) { |
227 | 228 | if ( is_null(User::getDefaultOption($key)) || |
228 | | - $value != User::getDefaultOption( $key ) ) { |
| 229 | + $value != User::getDefaultOption( $key ) || |
| 230 | + in_array( $key, $wgCentralAuthPropertySaveWhitelist ) ) { |
229 | 231 | $ser = serialize($value); |
230 | 232 | $insert_rows[] = array( |
231 | 233 | 'gp_user' => $this->getId(), |
Index: branches/preferences-work/extensions/CentralAuth/CentralAuth.php |
— | — | @@ -128,6 +128,12 @@ |
129 | 129 | $wgCentralAuthUDPAddress = false; |
130 | 130 | $wgCentralAuthNew2UDPPrefix = ''; |
131 | 131 | |
| 132 | +/** Settings which will always be saved to the DB, regardless of whether or not they |
| 133 | + * match the local default. This should be mainly settings whose defaults change per-wiki. |
| 134 | + */ |
| 135 | +$wgCentralAuthPropertySaveWhitelist = |
| 136 | + array( 'language', 'variant' ); |
| 137 | + |
132 | 138 | /** |
133 | 139 | * Initialization of the autoloaders, and special extension pages. |
134 | 140 | */ |