// Filter search BO
This commit is contained in:
1 parent
0ddc0d9f9a
commit
695326bc4e
1 file changed
+3
@@ -197,6 +197,8 @@ class AdminSearchControllerCore extends AdminController
|
|||||||
$this->_list['modules'][] = $module;
|
$this->_list['modules'][] = $module;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_numeric(trim($this->query)) && !Validate::isEmail($this->query))
|
||||||
|
{
|
||||||
$vars = http_build_query(array(
|
$vars = http_build_query(array(
|
||||||
'version' => _PS_VERSION_,
|
'version' => _PS_VERSION_,
|
||||||
'iso_lang' => Tools::strtolower(Context::getContext()->language->iso_code),
|
'iso_lang' => Tools::strtolower(Context::getContext()->language->iso_code),
|
||||||
@@ -206,6 +208,7 @@ class AdminSearchControllerCore extends AdminController
|
|||||||
if (($json_content = Tools::file_get_contents('https://api.addons.prestashop.com/search.php?'.$vars)) != false)
|
if (($json_content = Tools::file_get_contents('https://api.addons.prestashop.com/search.php?'.$vars)) != false)
|
||||||
$this->_list['addons'] = Tools::jsonDecode($json_content, true);
|
$this->_list['addons'] = Tools::jsonDecode($json_content, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Search a feature in all store
|
* Search a feature in all store
|
||||||
|
|||||||
Reference in new issue
Block a user