throw new SystemException("Could not create dir '".$this->targetDir."'");
}
}
- if (FileUtil::isApacheModule() || !is_writeable($this->targetDir)) {
+ if (FileUtil::isApacheModule() || !is_writable($this->targetDir)) {
$this->makeWriteable($this->targetDir);
}
}
}
umask($oldumask);
}
- if (FileUtil::isApacheModule() || !is_writeable($this->targetDir.$dir)) {
+ if (FileUtil::isApacheModule() || !is_writable($this->targetDir.$dir)) {
$this->makeWriteable($this->targetDir.$dir);
}
}
*/
protected function createFile($file, $index, Tar $tar) {
$tar->extract($index, $this->targetDir.$file);
- if (FileUtil::isApacheModule() || !is_writeable($this->targetDir.$file)) {
+ if (FileUtil::isApacheModule() || !is_writable($this->targetDir.$file)) {
$this->makeWriteable($this->targetDir.$file);
}
}
if (PACKAGE_ID) {
foreach (Option::getOptions() as $constantName => $option) {
if (in_array($option->optionType, static::$supportedOptionType)) {
- $variables['wcf_option_'.mb_strtolower($constantName)] = (is_integer($option->optionValue)) ? $option->optionValue : '"'.$option->optionValue.'"';
+ $variables['wcf_option_'.mb_strtolower($constantName)] = (is_int($option->optionValue)) ? $option->optionValue : '"'.$option->optionValue.'"';
}
}
}
$compiledContent .= $textBlocks[$i].$compiledTags[$i];
}
$compiledContent .= $textBlocks[$i];
- $compiledContent = chop($compiledContent);
+ $compiledContent = rtrim($compiledContent);
// reinsert {literal} Tags
$compiledContent = $this->reinsertLiterals($compiledContent);