Update mpdf version

ofaj
jmontoyaa 9 years ago
parent 372acb3054
commit 884e589d72
  1. 2
      composer.json
  2. 4
      main/inc/global.inc.php

@ -119,7 +119,7 @@
"ezyang/htmlpurifier": "4.6.0",
"szymach/c-pchart": "1.*",
"aferrandini/phpqrcode": "1.0.1",
"mpdf/mpdf": "5.7.4",
"mpdf/mpdf": "6.1.*",
"barryvdh/elfinder-builds": "2.1.0.3",
"jbroadway/urlify": "1.0.3-stable",
"monolog/monolog": "~1.0",

@ -85,6 +85,9 @@ define('USERNAME_MAX_LENGTH', $defaultUserNameLength);
// Fix bug in IIS that doesn't fill the $_SERVER['REQUEST_URI'].
api_request_uri();
define('_MPDF_TEMP_PATH', __DIR__.'/../../app/cache/mpdf/');
define('_MPDF_TTFONTDATAPATH', __DIR__.'/../../app/cache/mpdf/');
// Include the libraries that are necessary everywhere
require_once __DIR__.'/../../vendor/autoload.php';
@ -102,7 +105,6 @@ require_once $libraryPath.'fileUpload.lib.php';
require_once $libraryPath.'fileDisplay.lib.php';
require_once $libraryPath.'course_category.lib.php';
define('_MPDF_TEMP_PATH', api_get_path(SYS_ARCHIVE_PATH).'mpdf/');
if (!is_dir(_MPDF_TEMP_PATH)) {
mkdir(_MPDF_TEMP_PATH, api_get_permissions_for_new_directories(), true);
}

Loading…
Cancel
Save