mirror of
https://codeberg.org/SeedDMS/paperless
synced 2025-05-11 20:21:14 +00:00
no need to include Preview.php anymore
This commit is contained in:
parent
d114d74dba
commit
4a1b6ba98e
|
@ -647,8 +647,6 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
|||
} /* }}} */
|
||||
|
||||
function documents_thumb($request, $response, $args) { /* {{{ */
|
||||
require_once "SeedDMS/Preview.php";
|
||||
|
||||
$dms = $this->container->dms;
|
||||
$userobj = $this->container->userobj;
|
||||
$settings = $this->container->config;
|
||||
|
@ -699,7 +697,6 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
|||
* documents which are not pdf already into pdf
|
||||
*/
|
||||
function documents_preview($request, $response, $args) { /* {{{ */
|
||||
require_once "SeedDMS/Preview.php";
|
||||
$dms = $this->container->dms;
|
||||
$userobj = $this->container->userobj;
|
||||
$settings = $this->container->config;
|
||||
|
@ -768,7 +765,6 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
|||
} /* }}} */
|
||||
|
||||
function documents_download($request, $response, $args) { /* {{{ */
|
||||
require_once "SeedDMS/Preview.php";
|
||||
$dms = $this->container->dms;
|
||||
$userobj = $this->container->userobj;
|
||||
$settings = $this->container->config;
|
||||
|
@ -1125,7 +1121,6 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
|||
if($document) {
|
||||
$folder = $document->getFolder();
|
||||
/* Remove all preview images. */
|
||||
require_once("SeedDMS/Preview.php");
|
||||
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir);
|
||||
$previewer->deleteDocumentPreviews($document);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user