server/apps/files_versions/ajax/togglesettings.php
2012-05-15 00:52:00 +02:00

11 lines
256 B
PHP

<?php
OCP\JSON::checkAppEnabled('files_versions');
OCP\JSON::checkAdminUser();
if (OCP\Config::getSystemValue('versions', 'true')=='true') {
OCP\Config::setSystemValue('versions', 'false');
} else {
OCP\Config::setSystemValue('versions', 'true');
}
?>