From: Matthias Schmidt Date: Mon, 25 Jul 2011 16:30:23 +0000 (+0200) Subject: Changed deletePattern to removePattern X-Git-Tag: 2.0.0_Beta_1~1957^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bff80f87a90802c834415d008ad9902487a7edce;p=GitHub%2FWoltLab%2FWCF.git Changed deletePattern to removePattern --- diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index 0f7037585c..910d31e6b8 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -290,7 +290,7 @@ class LanguageEditor extends DatabaseObjectEditor { 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$~'); } /** @@ -298,9 +298,9 @@ class LanguageEditor extends DatabaseObjectEditor { */ 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$~'); } /** diff --git a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php index aff0441963..bc9acf1d69 100644 --- a/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php +++ b/wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php @@ -202,7 +202,7 @@ class DiskCacheSource implements ICacheSource { while ($row = $statement->fetchArray()) { $packageDir = FileUtil::getRealPath(WCF_DIR.$row['packageDir']); $cacheDir = $packageDir.'cache'; - DirectoryUtil::getInstance($cacheDir)->deletePattern('~.*\.php$'); + DirectoryUtil::getInstance($cacheDir)->removePattern('~.*\.php$'); } } } diff --git a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php index 8b7f9080e7..4e2e374ae7 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateEngine.class.php @@ -599,7 +599,7 @@ class TemplateEngine extends SingletonFactory { if (empty($compileDir)) $compileDir = WCF_DIR.'templates/compiled/'; // delete compiled templates - DirectoryUtil::getInstance($compileDir)->deletePattern('~.*_.*_.*\.php$'); + DirectoryUtil::getInstance($compileDir)->removePattern('~.*_.*_.*\.php$'); } /**