Browse Source

add hostPage weight and rank info

main
ghost 2 years ago
parent
commit
57f64f6b90
  1. 6
      public/api.php

6
public/api.php

@ -35,11 +35,13 @@ if (API_ENABLED) { @@ -35,11 +35,13 @@ if (API_ENABLED) {
// Generate results
$dbResults = [];
foreach ($sphinxResults as $sphinxResult) {
foreach ($sphinxResults as $i => $sphinxResult) {
if ($hostPage = $db->getFoundHostPage($sphinxResult->id)) {
$dbResults[] = $hostPage;
$dbResults[$i] = $hostPage;
$dbResults[$i]->weight = $sphinxResult->weight;
}
}

Loading…
Cancel
Save