[-] BO : Modules list automatic refresh when BO connect to Addons - Bug fixed #PSTEST-367

This commit is contained in:
fSerny
2012-01-10 16:55:14 +00:00
parent 4e5d09e569
commit ca2935a8dd
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ class AdminModulesControllerCore extends AdminController
public function isFresh($file, $timeout = 604800000)
{
if (file_exists(_PS_ROOT_DIR_.$file))
return ((time() - filemtime(_PS_ROOT_DIR_.$this->cache_file_modules_list)) < $timeout);
return ((time() - filemtime(_PS_ROOT_DIR_.$file)) < $timeout);
else
return false;
}