diff options
Diffstat (limited to 'apps/files_versions/ajax/togglesettings.php')
-rw-r--r-- | apps/files_versions/ajax/togglesettings.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/files_versions/ajax/togglesettings.php b/apps/files_versions/ajax/togglesettings.php new file mode 100644 index 00000000000..8cb5057672d --- /dev/null +++ b/apps/files_versions/ajax/togglesettings.php @@ -0,0 +1,11 @@ +<?php + +OC_JSON::checkAppEnabled('files_versions'); +OC_JSON::checkAdminUser(); +if (OC_Config::getValue('versions', 'true')=='true') { + OC_Config::setValue('versions', 'false'); +} else { + OC_Config::setValue('versions', 'true'); +} + +?> |