Changed deletePattern to removePattern
authorMatthias Schmidt <gravatronics@live.com>
Mon, 25 Jul 2011 16:30:23 +0000 (18:30 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 25 Jul 2011 16:30:23 +0000 (18:30 +0200)
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php
wcfsetup/install/files/lib/system/cache/source/DiskCacheSource.class.php
wcfsetup/install/files/lib/system/template/TemplateEngine.class.php

index 0f7037585c52a0302f6ee79ae2be99900fb4eb63..910d31e6b8c204a2fa1593479b10d64b630d9f04 100644 (file)
@@ -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$~');
        }
        
        /**
index aff0441963939b775edc4f58ed6fa518f7eab530..bc9acf1d69cfb4b2615e0f088fa620553d927cec 100644 (file)
@@ -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$');
                }
        }
 }
index 8b7f9080e7c71028c876c895079359548382aeba..4e2e374ae7757faaf035f54ec65be4b8662f5aef 100644 (file)
@@ -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$');
        }
        
        /**