forked from La_Bureautique/zeg1jeux
La fucking biourotique once again
parent
8b0b245c34
commit
89d60c4b12
|
@ -196,7 +196,7 @@ class Gchange {
|
|||
return $this->getNearbyPlaces($user->getLat(), $user->getLon(), $radius, null, $maxPlacesNb);
|
||||
}
|
||||
|
||||
public function getNearbyPlaces ($lat, $lon, $maxDistance, $minDistance = NULL, $maxPlacesNb) {
|
||||
public function getNearbyPlaces ($lat, $lon, $maxDistance, $minDistance = NULL, $maxPlacesNb = 15) {
|
||||
|
||||
$placesCacheDir = 'places-nearby/geopoint/' . $maxDistance . 'km/';
|
||||
$placesCacheFile = $lat . ',' . $lon . '.json';
|
||||
|
@ -321,7 +321,7 @@ class Gchange {
|
|||
$result->hits->hits = array();
|
||||
|
||||
$rHitsNb = count($r->hits->hits);
|
||||
|
||||
|
||||
for ($i = 0; $i < $rHitsNb; $i++) {
|
||||
|
||||
$result->hits->hits[$i] = new stdClass;
|
||||
|
|
Loading…
Reference in New Issue