From e409e7cd4cdf2e0f25ae4ab1ca9503849546b325 Mon Sep 17 00:00:00 2001
From: Frank Karlitschek <frank@owncloud.org>
Date: Tue, 1 May 2012 09:38:10 +0200
Subject: [PATCH] forgot a file

---
 apps/files_versions/ajax/togglesettings.php | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 apps/files_versions/ajax/togglesettings.php

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');
+}
+
+?>
-- 
GitLab