Fixed a directory creation bug
When the cache directory for servericons was not found, the ServerIconCache tried to create one. Due to a bug, the created directory had no permissions and was inaccessible
This commit is contained in:
parent
9257912eb7
commit
5e5fb356c7
|
@ -23,7 +23,7 @@ class ServerIconCache {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function syncIcons() {
|
public static function syncIcons() {
|
||||||
if (!file_exists(self::$iconsCacheDir) && !mkdir(self::$iconsCacheDir, true)) {
|
if (!file_exists(self::$iconsCacheDir) && !mkdir(self::$iconsCacheDir)) {
|
||||||
throw new \Exception("Cannot create icons cache directory at " . self::$iconsCacheDir);
|
throw new \Exception("Cannot create icons cache directory at " . self::$iconsCacheDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue