Fix incorrect icon sometimes (#9887)

* Fix icon finding
Also fix os suggest not loading all OS.

* Fix os that would have missing icon under the new code (and one under the old code)

* forgot icon
This commit is contained in:
Tony Murray
2019-03-01 23:06:01 -06:00
committed by GitHub
parent 7c4a0c7244
commit e677d4b63e
10 changed files with 46 additions and 45 deletions

View File

@@ -56,6 +56,7 @@ function levsortos($base, $obj, $keys)
header('Content-type: application/json');
if (isset($_GET['term'])) {
load_all_os();
$_GET['term'] = clean($_GET['term']);
$sortos = levsortos($_GET['term'], $config['os'], array("text", "os"));
$sortos = array_slice($sortos, 0, 20);