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:
Wruczek 2019-01-19 15:25:25 +01:00
parent 9257912eb7
commit 5e5fb356c7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }