mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-28 01:00:02 +00:00
Add all gadgets to DefaultUserOptions
Without the default the preference is never deleted from the database, even it was disabled by the user. Bug: T291748 Change-Id: I1010e260fda118cbea83ad39e33055e403e37630
This commit is contained in:
parent
0007744ee6
commit
d175e964db
|
@ -75,9 +75,7 @@ class GadgetHooks {
|
|||
*/
|
||||
foreach ( $gadgets as $thisSection ) {
|
||||
foreach ( $thisSection as $gadgetId => $gadget ) {
|
||||
if ( $gadget->isOnByDefault() ) {
|
||||
$defaultOptions['gadget-' . $gadgetId] = 1;
|
||||
}
|
||||
$defaultOptions['gadget-' . $gadgetId] = $gadget->isOnByDefault() ? 1 : 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue