Skip to content

Commit

Permalink
Correct OpenSearch description (parameters:Option instead of paramete…
Browse files Browse the repository at this point in the history
…rs:Options)
  • Loading branch information
jjrom committed Jun 21, 2018
1 parent 2a3f097 commit e3b225b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/resto/XML/RestoOSDD.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private function setParameters($format) {
if (isset($filter['options'])) {
if (is_array($filter['options'])) {
for ($i = count($filter['options']); $i--;) {
$this->startElement('parameters:Options');
$this->startElement('parameters:Option');
$this->writeAttribute('value', $filter['options'][$i]['value']);
if (isset($filter['options'][$i]['label'])) {
$this->writeAttribute('label', $filter['options'][$i]['label']);
Expand All @@ -299,7 +299,7 @@ private function setParameters($format) {
$statistics = $this->statistics;
if (isset($filter['key']) && isset($statistics['facets'][$filter['key']])) {
foreach (array_keys($statistics['facets'][$filter['key']]) as $key) {
$this->startElement('parameters:Options');
$this->startElement('parameters:Option');
$this->writeAttribute('value', $key);
$this->endElement();
}
Expand Down

0 comments on commit e3b225b

Please sign in to comment.