Переглянути джерело

outsource sharing and deleted files previews to apps

tags/v6.0.0alpha2
Georg Ehrke 10 роки тому
джерело
коміт
d9e8ebabdc

core/ajax/publicpreview.php → apps/files_sharing/ajax/publicpreview.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);
}

+ 5
- 0
apps/files_sharing/appinfo/routes.php Переглянути файл

@@ -0,0 +1,5 @@
<?php
$this->create('core_ajax_public_preview', '/publicpreview.png')->action(
function() {
require_once __DIR__ . '/../ajax/publicpreview.php';
});

core/ajax/trashbinpreview.php → apps/files_trashbin/ajax/preview.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);
}

+ 5
- 0
apps/files_trashbin/appinfo/routes.php Переглянути файл

@@ -0,0 +1,5 @@
<?php
$this->create('core_ajax_trashbin_preview', '/preview.png')->action(
function() {
require_once __DIR__ . '/../ajax/preview.php';
});

+ 0
- 4
core/routes.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()

Завантаження…
Відмінити
Зберегти