Merge pull request #480 from fergusean/patch-1
Skip inquiring PHP for temp directory when it's user defined
This commit is contained in:
commit
0354e4e4a1
|
|
@ -305,12 +305,11 @@ class Settings
|
||||||
*/
|
*/
|
||||||
public static function getTempDir()
|
public static function getTempDir()
|
||||||
{
|
{
|
||||||
$tempDir = sys_get_temp_dir();
|
|
||||||
|
|
||||||
if (!empty(self::$tempDir)) {
|
if (!empty(self::$tempDir)) {
|
||||||
$tempDir = self::$tempDir;
|
$tempDir = self::$tempDir;
|
||||||
|
} else {
|
||||||
|
$tempDir = sys_get_temp_dir();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $tempDir;
|
return $tempDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue