forked from Wavyzz/dolibarr
Removed BOM from UTF-8 files
Fix: convert line delimiters (regis) Conflicts: htdocs/core/filemanagerdol/browser/default/js/common.js htdocs/core/filemanagerdol/browser/default/js/fckxml.js
This commit is contained in:
committed by
Regis Houssin
parent
49bacc6fda
commit
d34c4518d2
@@ -77,11 +77,11 @@ class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS
|
||||
|
||||
if (is_resource($filename)) {
|
||||
$this->_FILEH_ = $filename;
|
||||
} else if ($filename == '-' || $filename == '') {
|
||||
$this->_tmp_filename = tempnam($this->_tmp_dir, "OLE_PPS_Root");
|
||||
$this->_FILEH_ = fopen($this->_tmp_filename,"w+b");
|
||||
if ($this->_FILEH_ == false) {
|
||||
throw new Exception("Can't create temporary file.");
|
||||
} else if ($filename == '-' || $filename == '') {
|
||||
$this->_tmp_filename = tempnam($this->_tmp_dir, "OLE_PPS_Root");
|
||||
$this->_FILEH_ = fopen($this->_tmp_filename,"w+b");
|
||||
if ($this->_FILEH_ == false) {
|
||||
throw new Exception("Can't create temporary file.");
|
||||
}
|
||||
} else {
|
||||
$this->_FILEH_ = fopen($filename, "wb");
|
||||
|
||||
Reference in New Issue
Block a user