Commit 4749a23f authored by metzlerd's avatar metzlerd
Browse files

#2360505 use drupal temp directory

parent e2724f17
......@@ -10,8 +10,13 @@ class FrxMPDF extends FrxDocument {
public function __construct() {
$tmp = file_directory_temp();
// To do - use config variable of path to mpdf libs
if (!file_exists("$tmp/mpdf")) {
mkdir("$tmp/mpdf");
}
define('_MPDF_PATH', 'sites/all/libraries/mpdf/');
define("_MPDF_TEMP_PATH","$tmp/mpdf/");
include_once('sites/all/libraries/mpdf/mpdf.php');
$this->content_type='application/pdf';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment