Fix issue when creating blank folder with filename

Add dirname function in order to avoid to create a blank folder with the filename.
This commit is contained in:
Honoré HOUNWANOU 2016-04-05 06:31:40 -04:00
parent 7857670088
commit 85e719a13d
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class Order extends MyBaseModel
}
if (!is_dir($pdf_file_path)) {
File::makeDirectory($pdf_file_path, 0777, true, true);
File::makeDirectory(dirname($pdf_file_path), 0777, true, true);
}
PDF::setOutputMode('F'); // force to file