| @@ 81-90 (lines=10) @@ | ||
| 78 | ||
| 79 | $params = $params->get('params', []); |
|
| 80 | ||
| 81 | if (isset($params['l']['data']) && |
|
| 82 | isset($params['l']['name']) && |
|
| 83 | !empty($params['l']['name']) |
|
| 84 | ) { |
|
| 85 | /* @var \Geo\Form\GeoText $geoText */ |
|
| 86 | $geoText = $this->searchForm->get('params')->get('l'); |
|
| 87 | ||
| 88 | $geoText->setValue($params['l']); |
|
| 89 | $params['location'] = $geoText->getValue('entity'); |
|
| 90 | } |
|
| 91 | ||
| 92 | ||
| 93 | $this->searchForm->setAttribute('action', $url); |
|
| @@ 96-104 (lines=9) @@ | ||
| 93 | ||
| 94 | $params = $params->get('params', []); |
|
| 95 | ||
| 96 | if (isset($params['l']['data']) && |
|
| 97 | isset($params['l']['name']) && |
|
| 98 | !empty($params['l']['name'])) { |
|
| 99 | /* @var \Geo\Form\GeoText $geoText */ |
|
| 100 | $geoText = $this->searchForm->get('params')->get('l'); |
|
| 101 | ||
| 102 | $geoText->setValue($params['l']); |
|
| 103 | $params['location'] = $geoText->getValue('entity'); |
|
| 104 | } |
|
| 105 | ||
| 106 | if (!isset($params['sort'])) { |
|
| 107 | $params['sort']='-date'; |
|