Merge pull request #1455 from pztrn/master
Do not attempt to create itemcache directory if it already exist.
This commit is contained in:
commit
58ac6bde09
1 changed files with 3 additions and 1 deletions
4
boot.php
4
boot.php
|
@ -2361,7 +2361,9 @@ function get_itemcachepath() {
|
|||
|
||||
if ($temppath != "") {
|
||||
$itemcache = $temppath."/itemcache";
|
||||
mkdir($itemcache);
|
||||
if(!file_exists($itemcache) && !is_dir($itemcache)) {
|
||||
mkdir($itemcache);
|
||||
}
|
||||
|
||||
if (is_dir($itemcache) AND is_writable($itemcache)) {
|
||||
set_config("system", "itemcache", $itemcache);
|
||||
|
|
Loading…
Reference in a new issue