mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-24 13:34:25 +00:00
add hostPage weight and rank info
This commit is contained in:
parent
d20487acfd
commit
57f64f6b90
@ -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…
x
Reference in New Issue
Block a user