diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-01-16 13:48:02 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-01-16 13:48:02 +0100 |
commit | 1c4668f808e66247da92cef72f97a8e7e2a8e3ac (patch) | |
tree | 8068e6d361f3b585deaf67f2ca37e33e591caf3e /apps | |
parent | 9526acbcc44c303d9290a2f5ad77e0b9a6820310 (diff) | |
parent | a76f0a0ba7e170a0fe5404fc43cc83c3a2dc2240 (diff) | |
download | nextcloud-server-1c4668f808e66247da92cef72f97a8e7e2a8e3ac.tar.gz nextcloud-server-1c4668f808e66247da92cef72f97a8e7e2a8e3ac.zip |
Merge pull request #13399 from owncloud/trashbin-fixpreviewroute
Fix preview route for trashbin
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_trashbin/appinfo/routes.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/files_trashbin/appinfo/routes.php b/apps/files_trashbin/appinfo/routes.php index 56dbf382735..66a324c54d9 100644 --- a/apps/files_trashbin/appinfo/routes.php +++ b/apps/files_trashbin/appinfo/routes.php @@ -1,10 +1,7 @@ <?php /** @var $this \OCP\Route\IRouter */ -$this->create('core_ajax_trashbin_preview', '/preview')->action( -function() { - require_once __DIR__ . '/../ajax/preview.php'; -}); - +$this->create('core_ajax_trashbin_preview', 'ajax/preview.php') + ->actionInclude('files_trashbin/ajax/preview.php'); $this->create('files_trashbin_ajax_delete', 'ajax/delete.php') ->actionInclude('files_trashbin/ajax/delete.php'); $this->create('files_trashbin_ajax_isEmpty', 'ajax/isEmpty.php') |