dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add a composer.local.json-sample"
[lhc/web/wiklou.git]
/
includes
/
Preferences.php
diff --git
a/includes/Preferences.php
b/includes/Preferences.php
index
0f8dcc3
..
ad25fa8
100644
(file)
--- a/
includes/Preferences.php
+++ b/
includes/Preferences.php
@@
-508,7
+508,6
@@
class Preferences {
# Apply the same CSS class used on the input to the message:
'cssclass' => $emailauthenticationclass,
);
# Apply the same CSS class used on the input to the message:
'cssclass' => $emailauthenticationclass,
);
- $defaultPreferences['emailaddress']['cssclass'] = $emailauthenticationclass;
}
}
}
}
@@
-1006,6
+1005,11
@@
class Preferences {
'section' => 'watchlist/advancedwatchlist',
'label-message' => 'tog-watchlisthideliu',
);
'section' => 'watchlist/advancedwatchlist',
'label-message' => 'tog-watchlisthideliu',
);
+ $defaultPreferences['watchlistreloadautomatically'] = array(
+ 'type' => 'toggle',
+ 'section' => 'watchlist/advancedwatchlist',
+ 'label-message' => 'tog-watchlistreloadautomatically',
+ );
if ( $config->get( 'RCWatchCategoryMembership' ) ) {
$defaultPreferences['watchlisthidecategorization'] = array(
if ( $config->get( 'RCWatchCategoryMembership' ) ) {
$defaultPreferences['watchlisthidecategorization'] = array(
@@
-1269,7
+1273,7
@@
class Preferences {
* @param IContextSource $context
* @param string $formClass
* @param array $remove Array of items to remove
* @param IContextSource $context
* @param string $formClass
* @param array $remove Array of items to remove
- * @return HtmlForm
+ * @return
PreferencesForm|
HtmlForm
*/
static function getFormObject(
$user,
*/
static function getFormObject(
$user,
@@
-1655,4
+1659,12
@@
class PreferencesForm extends HTMLForm {
Hooks::run( 'PreferencesGetLegend', array( $this, $key, &$legend ) );
return $legend;
}
Hooks::run( 'PreferencesGetLegend', array( $this, $key, &$legend ) );
return $legend;
}
+
+ /**
+ * Get the keys of each top level preference section.
+ * @return array of section keys
+ */
+ function getPreferenceSections() {
+ return array_keys( array_filter( $this->mFieldTree, 'is_array' ) );
+ }
}
}