Commit 8c3657a9 authored by Nigel McNie's avatar Nigel McNie
Browse files

Only set the defaultquota to its default if the plugin is being installed....

Only set the defaultquota to its default if the plugin is being installed. Otherwise this overwrites any custom defaultquota setting chosen every time the plugin is upgraded.

Noticed for the file 0.4.2 upgrade.
parent 325ab635
......@@ -67,8 +67,10 @@ class PluginArtefactFile extends PluginArtefact {
return $subscriptions;
}
public static function postinst() {
set_config_plugin('artefact', 'file', 'defaultquota', 10485760);
public static function postinst($prevversion) {
if ($prevversion == 0) {
set_config_plugin('artefact', 'file', 'defaultquota', 10485760);
}
self::resync_filetype_list();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment