if ($languageID != '.*') $languageID = intval($languageID);
if ($packageID != '.*') $packageID = intval($packageID);
- DirectoryUtil::getInstance(WCF_DIR.'language/')->deletePattern('~'.$packageID.'_'.$languageID.'_'.$category.'\.php$~');
+ DirectoryUtil::getInstance(WCF_DIR.'language/')->removePattern('~'.$packageID.'_'.$languageID.'_'.$category.'\.php$~');
}
/**
*/
public function deleteCompiledTemplates() {
// templates
- DirectoryUtil::getInstance(WCF_DIR.'templates/compiled/')->deletePattern('~.*_'.$this->languageID.'_.*\.php$~');
+ DirectoryUtil::getInstance(WCF_DIR.'templates/compiled/')->removePattern('~.*_'.$this->languageID.'_.*\.php$~');
// acp templates
- DirectoryUtil::getInstance(WCF_DIR.'acp/templates/compiled/')->deletePattern('~.*_'.$this->languageID.'_.*\.php$~');
+ DirectoryUtil::getInstance(WCF_DIR.'acp/templates/compiled/')->removePattern('~.*_'.$this->languageID.'_.*\.php$~');
}
/**
while ($row = $statement->fetchArray()) {
$packageDir = FileUtil::getRealPath(WCF_DIR.$row['packageDir']);
$cacheDir = $packageDir.'cache';
- DirectoryUtil::getInstance($cacheDir)->deletePattern('~.*\.php$');
+ DirectoryUtil::getInstance($cacheDir)->removePattern('~.*\.php$');
}
}
}
if (empty($compileDir)) $compileDir = WCF_DIR.'templates/compiled/';
// delete compiled templates
- DirectoryUtil::getInstance($compileDir)->deletePattern('~.*_.*_.*\.php$');
+ DirectoryUtil::getInstance($compileDir)->removePattern('~.*_.*_.*\.php$');
}
/**