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
Rework the Preferences to prevent FOUC
[lhc/web/wiklou.git]
/
includes
/
Preferences.php
diff --git
a/includes/Preferences.php
b/includes/Preferences.php
index
0f8dcc3
..
096f8e3
100644
(file)
--- a/
includes/Preferences.php
+++ b/
includes/Preferences.php
@@
-1655,4
+1655,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' ) );
+ }
}
}