//small fix
This commit is contained in:
@@ -1536,6 +1536,9 @@ class AdminControllerCore extends Controller
|
|||||||
protected function addToolBarModulesListButton()
|
protected function addToolBarModulesListButton()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (!$this->isFresh(Module::CACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST, 86400))
|
||||||
|
file_put_contents(_PS_ROOT_DIR_.Module::CACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST, Tools::addonsRequest('native'));
|
||||||
|
|
||||||
$country_module_list_xml = simplexml_load_file(_PS_ROOT_DIR_.Module::CACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST);
|
$country_module_list_xml = simplexml_load_file(_PS_ROOT_DIR_.Module::CACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST);
|
||||||
$country_module_list = array();
|
$country_module_list = array();
|
||||||
foreach ($country_module_list_xml->module as $k => $m)
|
foreach ($country_module_list_xml->module as $k => $m)
|
||||||
|
|||||||
Reference in New Issue
Block a user