mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
files_opds: v0.6.8, implement preview provider using IPreview, only works from OC8.1 and onwards!
This commit is contained in:
parent
5734bedf41
commit
301e6507af
4 changed files with 10 additions and 7 deletions
|
@ -2,10 +2,8 @@
|
|||
|
||||
$l = OC_L10N::get('files_opds');
|
||||
|
||||
require 'files_opds/lib/epub-preview.php';
|
||||
|
||||
\OCP\App::registerPersonal('files_opds', 'personal');
|
||||
\OCP\App::registerAdmin('files_opds', 'admin');
|
||||
|
||||
/* register preview provider */
|
||||
\OC::$server->getPreviewManager()->registerProvider('OC\Preview\Epub', array('apps' => array('files_opds')));
|
||||
\OC::$server->getPreviewManager()->registerProvider('/application\/epub\+zip/', function() { return new OCA\Files_Opds\EpubPreview; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue