[-] BO : moved some code from AdminModulesController to AdminController because is is used on AdminHomeController

This commit is contained in:
dMetzger
2012-08-06 13:32:26 +00:00
parent 8afd665c8f
commit 6abec99fd3
3 changed files with 92 additions and 97 deletions

View File

@@ -658,6 +658,9 @@ class AdminHomeControllerCore extends AdminController
if (Configuration::get('PS_LAST_VERSION_CHECK') < time() - (3600 * Upgrader::DEFAULT_CHECK_VERSION_DELAY_HOURS))
$tpl_vars['refresh_check_version'] = 1;
}
if (!$this->isFresh(Module::CACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST, 86400))
file_put_contents(_PS_ROOT_DIR_.Module::CACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST, $this->addonsRequest('native'));
$tpl_vars['upgrade'] = $upgrade;