move inclusion of "SeedDMS/Preview.php" into view

This commit is contained in:
Uwe Steinmann 2016-04-26 12:16:29 +02:00
parent 43633620e8
commit fcf85a88e0
2 changed files with 5 additions and 5 deletions

View File

@ -27,11 +27,6 @@ include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassAccessOperation.php");
include("../inc/inc.Authentication.php");
/**
* Include class to preview documents
*/
require_once("SeedDMS/Preview.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1]);
if(!$view) {

View File

@ -18,6 +18,11 @@
*/
require_once("class.Bootstrap.php");
/**
* Include class to preview documents
*/
require_once("SeedDMS/Preview.php");
/**
* Class which outputs the html page for ViewDocument view
*