Skip inquiring PHP for temp directory when it's user defined
This commit is contained in:
parent
8bb4573534
commit
00adf6de81
|
|
@ -298,12 +298,11 @@ class Settings
|
|||
*/
|
||||
public static function getTempDir()
|
||||
{
|
||||
$tempDir = sys_get_temp_dir();
|
||||
|
||||
if (!empty(self::$tempDir)) {
|
||||
$tempDir = self::$tempDir;
|
||||
} else {
|
||||
$tempDir = sys_get_temp_dir();
|
||||
}
|
||||
|
||||
return $tempDir;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue