nextcloud/apps/files_versions/ajax/togglesettings.php

12 lines
254 B
PHP
Raw Normal View History

2012-05-01 11:38:10 +04:00
<?php
OC_JSON::checkAppEnabled('files_versions');
OC_JSON::checkAdminUser();
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
}
?>