]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix preview route for trashbin
authorVincent Petry <pvince81@owncloud.com>
Thu, 15 Jan 2015 17:45:24 +0000 (18:45 +0100)
committerVincent Petry <pvince81@owncloud.com>
Thu, 15 Jan 2015 17:45:24 +0000 (18:45 +0100)
apps/files_trashbin/appinfo/routes.php

index 56dbf382735fab5a988cc540240c89ef65796fc5..66a324c54d997f6c2adde68b1847b2c7e6a4d49a 100644 (file)
@@ -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')