Add route for download of versions

Otherwise on master it was not possible anymore to download older versions.

Fixes itself.
This commit is contained in:
Lukas Reschke 2014-12-02 17:52:31 +01:00
parent 0769556989
commit c4e0c02526
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,8 @@ function() {
require_once __DIR__ . '/../ajax/preview.php';
});
$this->create('files_versions_download', 'download.php')
->actionInclude('files_versions/download.php');
$this->create('files_versions_ajax_getVersions', 'ajax/getVersions.php')
->actionInclude('files_versions/ajax/getVersions.php');
$this->create('files_versions_ajax_rollbackVersion', 'ajax/rollbackVersion.php')

View file

@ -22,7 +22,7 @@
*/
OCP\JSON::checkAppEnabled('files_versions');
//OCP\JSON::callCheck();
OCP\JSON::checkLoggedIn();
$file = $_GET['file'];
$revision=(int)$_GET['revision'];