diff --git a/admin-dev/tabs/AdminPerformance.php b/admin-dev/tabs/AdminPerformance.php index 5ae6baf13..ee5b7e18c 100644 --- a/admin-dev/tabs/AdminPerformance.php +++ b/admin-dev/tabs/AdminPerformance.php @@ -1,6 +1,6 @@ _errors[] = Tools::displayError('Caching system is missing'); @@ -52,7 +52,7 @@ class AdminPerformance extends AdminTab if (!($depth = Tools::getValue('ps_cache_fs_directory_depth'))) $this->_errors[] = Tools::displayError('Please set a directory depth'); if (!sizeof($this->_errors)) - { + { CacheFS::deleteCacheDirectory(); CacheFS::createCacheDirectories((int)$depth); Configuration::updateValue('PS_CACHEFS_DIRECTORY_DEPTH', (int)$depth); @@ -103,7 +103,7 @@ class AdminPerformance extends AdminTab else $this->_errors[] = Tools::displayError('You do not have permission to delete here.'); } - + if (Tools::isSubmit('submitCiphering') AND Configuration::get('PS_CIPHER_ALGORITHM') != (int)Tools::getValue('PS_CIPHER_ALGORITHM')) { if ($this->tabAccess['edit'] === '1') @@ -144,7 +144,7 @@ class AdminPerformance extends AdminTab else $this->_errors[] = Tools::displayError('You do not have permission to edit here.'); } - + if (Tools::isSubmit('submitCCC')) { if ($this->tabAccess['edit'] === '1') @@ -204,7 +204,7 @@ class AdminPerformance extends AdminTab { if ($this->tabAccess['edit'] === '1') { - if (!Combination::isActuallyUsed()) + if (!Combination::isCurrentlyUsed()) Configuration::updateValue('PS_COMBINATION_FEATURE_ACTIVE', Tools::getValue('combination')); Configuration::updateValue('PS_FEATURE_FEATURE_ACTIVE', Tools::getValue('feature')); Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getValue('token').'&conf=4'); @@ -222,10 +222,10 @@ class AdminPerformance extends AdminTab $warnings[] = $this->l('To use Memcached, you must install the Memcache PECL extension on your server.').' http://www.php.net/manual/en/memcache.installation.php'; if(!is_writable(_PS_CACHEFS_DIRECTORY_)) $warnings[] = $this->l('To use CacheFS the directory').' '.realpath(_PS_CACHEFS_DIRECTORY_).' '.$this->l('must be writable'); - + if ($warnings) $this->displayWarning($warnings); - + echo ' '; - + echo '
'; - + echo ' '; - + echo ' '; - + echo ' '; - + $depth = Configuration::get('PS_CACHEFS_DIRECTORY_DEPTH'); echo '