further check

This commit is contained in:
Steffen Schröder 2014-05-15 14:53:41 +02:00
parent 70b8a31b55
commit ee0e55c10b

View File

@ -114,6 +114,11 @@ class ChatlogPlugin implements CallbackListener, Plugin {
return false; return false;
} }
} }
if (!is_writable($folderDir)) {
trigger_error("ChatlogPlugin Log-Folder isn't writable! {$folderName}'!");
$this->fileName = null;
return false;
}
$fileName = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_FILENAME); $fileName = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_FILENAME);
$fileName = FileUtil::getClearedFileName($fileName); $fileName = FileUtil::getClearedFileName($fileName);
$usePId = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_USEPID); $usePId = $this->maniaControl->settingManager->getSettingValue($this, self::SETTING_USEPID);