return strcmp($groupA->getName(), $groupB->getName());
});
- $this->conditions = UserGroupAssignmentHandler::getInstance()->getGroupedObjectTypes('com.woltlab.wcf.condition.userGroupAssignment');
+ $this->conditions = UserGroupAssignmentHandler::getInstance()->getGroupedObjectTypes();
parent::readData();
}
$fileLocation = WCF_DIR.'images/proxy/'.substr($fileName, 0, 2).'/'.$fileName.($fileExtension ? '.'.$fileExtension : '');
$dir = dirname($fileLocation);
if (!@file_exists($dir)) {
- FileUtil::makePath($dir, 0777);
+ FileUtil::makePath($dir);
}
// download image
// and create subdirectory if necessary
$dir = dirname($attachment->getLocation());
if (!@file_exists($dir)) {
- FileUtil::makePath($dir, 0777);
+ FileUtil::makePath($dir);
}
// move uploaded file
}
// update the relevant language files
- self::deleteLanguageFiles($this->languageID, $category->languageCategory, $packageID);
+ self::deleteLanguageFiles($this->languageID, $category->languageCategory);
// delete relevant template compilations
$this->deleteCompiledTemplates();
}
// check if package is required by another package
- if (self::isRequired($this->packageID)) {
+ if ($this->isRequired()) {
return false;
}
// and create subdirectory if necessary
$dir = dirname($avatar->getLocation());
if (!@file_exists($dir)) {
- FileUtil::makePath($dir, 0777);
+ FileUtil::makePath($dir);
}
// move uploaded file
// and create subdirectory if necessary
$dir = dirname($avatar->getLocation());
if (!@file_exists($dir)) {
- FileUtil::makePath($dir, 0777);
+ FileUtil::makePath($dir);
}
// move uploaded file
// and create subdirectory if necessary
$dir = dirname($avatar->getLocation());
if (!@file_exists($dir)) {
- FileUtil::makePath($dir, 0777);
+ FileUtil::makePath($dir);
}
// copy file
*/
protected function createTargetDir() {
if (!@is_dir($this->targetDir)) {
- if (!FileUtil::makePath($this->targetDir, (FileUtil::isApacheModule() ? 0777 : 0755))) {
+ if (!FileUtil::makePath($this->targetDir)) {
throw new SystemException("Could not create dir '".$this->targetDir."'");
}
}