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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12324 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fSerny
2012-01-10 16:55:14 +00:00
parent f974830041
commit dd3f0031b6
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;
}