remove json lib. depriciate Tools::json function use php function

This commit is contained in:
shreesh arora
2021-03-05 19:35:08 +05:30
parent 82b30db256
commit 659d5b312f
94 changed files with 381 additions and 1248 deletions

View File

@@ -169,11 +169,11 @@ class AdminInformationControllerCore extends AdminController
$this->file_list = array('missing' => array(), 'updated' => array());
$xml = @simplexml_load_file(_PS_API_URL_.'/xml/md5/'._PS_VERSION_.'.xml');
if (!$xml || !isset($xml->ps_root_dir[0])) {
die(Tools::jsonEncode($this->file_list));
die(json_encode($this->file_list));
}
$this->getListOfUpdatedFiles($xml->ps_root_dir[0]);
die(Tools::jsonEncode($this->file_list));
die(json_encode($this->file_list));
}
public function getListOfUpdatedFiles(SimpleXMLElement $dir, $path = '')