diff --git a/htdocs/document.php b/htdocs/document.php index 0f45bf96eaa..40fb6045391 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -33,6 +33,7 @@ define('NOTOKENRENEWAL',1); // Disables token renewal // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP). +$encoding = 'UTF-8'; $action = isset($_GET["action"])?$_GET["action"]:''; $original_file = isset($_GET["file"])?$_GET["file"]:''; $modulepart = isset($_GET["modulepart"])?$_GET["modulepart"]:''; @@ -52,6 +53,11 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); // C'est un wrapper, donc header vierge function llxHeader() { } + +/* + * View + */ + require("./main.inc.php"); // Load $user and permissions require_once(DOL_DOCUMENT_ROOT.'/lib/files.lib.php');