summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 09:38:10 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 09:38:10 +0200
commite409e7cd4cdf2e0f25ae4ab1ca9503849546b325 (patch)
tree4bc08699508ffe75767a92da08d2bc2ba1570bea
parent5193ddd7d7b08a0ce4c3c8f963a218277937a85e (diff)
downloadnextcloud-server-e409e7cd4cdf2e0f25ae4ab1ca9503849546b325.tar.gz
nextcloud-server-e409e7cd4cdf2e0f25ae4ab1ca9503849546b325.zip
forgot a file
-rw-r--r--apps/files_versions/ajax/togglesettings.php11
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');
+}
+
+?>