@@ -81,6 +81,5 @@ try{ | |||
$preview->show(); | |||
} catch (\Exception $e) { | |||
\OC_Response::setStatus(500); | |||
\OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR); | |||
exit; | |||
\OC_Log::write('core', $e->getmessage(), \OC_Log::DEBUG); | |||
} |
@@ -0,0 +1,5 @@ | |||
<?php | |||
$this->create('core_ajax_public_preview', '/publicpreview.png')->action( | |||
function() { | |||
require_once __DIR__ . '/../ajax/publicpreview.php'; | |||
}); |
@@ -38,6 +38,5 @@ try{ | |||
$preview->showPreview(); | |||
}catch(\Exception $e) { | |||
\OC_Response::setStatus(500); | |||
\OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR); | |||
exit; | |||
\OC_Log::write('core', $e->getmessage(), \OC_Log::DEBUG); | |||
} |
@@ -0,0 +1,5 @@ | |||
<?php | |||
$this->create('core_ajax_trashbin_preview', '/preview.png')->action( | |||
function() { | |||
require_once __DIR__ . '/../ajax/preview.php'; | |||
}); |
@@ -44,10 +44,6 @@ $this->create('core_ajax_routes', '/core/routes.json') | |||
->action('OC_Router', 'JSRoutes'); | |||
$this->create('core_ajax_preview', '/core/preview.png') | |||
->actionInclude('core/ajax/preview.php'); | |||
$this->create('core_ajax_trashbin_preview', '/core/trashbinpreview.png') | |||
->actionInclude('core/ajax/trashbinpreview.php'); | |||
$this->create('core_ajax_public_preview', '/core/publicpreview.png') | |||
->actionInclude('core/ajax/publicpreview.php'); | |||
OC::$CLASSPATH['OC_Core_LostPassword_Controller'] = 'core/lostpassword/controller.php'; | |||
$this->create('core_lostpassword_index', '/lostpassword/') | |||
->get() |