nextcloud/apps/files_versions/ajax/togglesettings.php

11 lines
275 B
PHP
Raw Normal View History

2012-05-01 11:38:10 +04:00
<?php
2012-05-03 14:23:29 +04:00
OCP\JSON::checkAppEnabled('files_versions');
OCP\JSON::checkAdminUser();
OCP\JSON::callCheck();
2012-05-02 15:28:56 +04:00
if (OCP\Config::getSystemValue('versions', 'true')=='true') {
OCP\Config::setSystemValue('versions', 'false');
2012-05-01 11:38:10 +04:00
} else {
2012-05-02 15:28:56 +04:00
OCP\Config::setSystemValue('versions', 'true');
2012-05-01 11:38:10 +04:00
}