mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
src build elFinder-2.1-739b906
This commit is contained in:
@@ -136,8 +136,8 @@ class elFinderVolumeMsSQL extends elFinderVolumeDriver {
|
||||
|
||||
if (($tmp = $this->options['tmpPath'])) {
|
||||
if (!file_exists($tmp)) {
|
||||
if (@mkdir($tmp)) {
|
||||
@chmod($tmp, $this->options['tmbPathMode']);
|
||||
if (mkdir($tmp)) {
|
||||
chmod($tmp, $this->options['tmbPathMode']);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -601,8 +601,8 @@ class elFinderVolumeMsSQL extends elFinderVolumeDriver {
|
||||
**/
|
||||
protected function _fopen($path, $mode='rb') {
|
||||
$fp = $this->tmbPath
|
||||
? @fopen($this->getTempFile($path), 'w+')
|
||||
: @tmpfile();
|
||||
? fopen($this->getTempFile($path), 'w+')
|
||||
: tmpfile();
|
||||
|
||||
if ($fp) {
|
||||
$sql = "SET TEXTSIZE 2147483647 "; // increase mssql or odbc data size limit
|
||||
@@ -634,9 +634,9 @@ class elFinderVolumeMsSQL extends elFinderVolumeDriver {
|
||||
* @author Dmitry (dio) Levashov
|
||||
*/
|
||||
protected function _fclose($fp, $path='') {
|
||||
@fclose($fp);
|
||||
fclose($fp);
|
||||
if ($path) {
|
||||
@unlink($this->getTempFile($path));
|
||||
unlink($this->getTempFile($path));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user