Browse Source

Merge pull request #12556 from owncloud/add-route-for-versions

Add route for download of versions
tags/v8.0.0alpha1
Thomas Müller 9 years ago
parent
commit
6daa588e1c
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      apps/files_versions/appinfo/routes.php
  2. 1
    1
      apps/files_versions/download.php

+ 2
- 0
apps/files_versions/appinfo/routes.php 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')

+ 1
- 1
apps/files_versions/download.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'];

Loading…
Cancel
Save