outsource sharing and deleted files previews to apps

remotes/origin/stable6
Georg Ehrke 11 years ago
parent 48f0c54261
commit d9e8ebabdc
  1. 3
      apps/files_sharing/ajax/publicpreview.php
  2. 5
      apps/files_sharing/appinfo/routes.php
  3. 3
      apps/files_trashbin/ajax/preview.php
  4. 5
      apps/files_trashbin/appinfo/routes.php
  5. 4
      core/routes.php

@ -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()

Loading…
Cancel
Save