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
2.0
Wruczek 6 years ago
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…
Cancel
Save