@@ -71,11 +71,11 @@ |
||
71 | 71 | if ((!isset($term) || strlen(trim($term)) === 0) && $this->rest) |
72 | 72 | $term = $this->request->getQueryParamRaw('label'); |
73 | 73 | $term = trim($term); // surrounding whitespace is not considered significant |
74 | - $term = Normalizer::normalize( $term, Normalizer::FORM_C ); //Normalize decomposed unicode characters #1184 |
|
74 | + $term = Normalizer::normalize($term, Normalizer::FORM_C); //Normalize decomposed unicode characters #1184 |
|
75 | 75 | if ($this->rest) { |
76 | 76 | return $term; |
77 | 77 | } |
78 | - return strpos($term, "*") === false ? $term . "*" : $term; // default to prefix search |
|
78 | + return strpos($term, "*") === false ? $term."*" : $term; // default to prefix search |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | public function getContentLang() |
@@ -68,8 +68,9 @@ |
||
68 | 68 | public function getSearchTerm() : string |
69 | 69 | { |
70 | 70 | $term = $this->request->getQueryParamRaw('q') ? $this->request->getQueryParamRaw('q') : $this->request->getQueryParamRaw('query'); |
71 | - if ((!isset($term) || strlen(trim($term)) === 0) && $this->rest) |
|
72 | - $term = $this->request->getQueryParamRaw('label'); |
|
71 | + if ((!isset($term) || strlen(trim($term)) === 0) && $this->rest) { |
|
72 | + $term = $this->request->getQueryParamRaw('label'); |
|
73 | + } |
|
73 | 74 | $term = trim($term); // surrounding whitespace is not considered significant |
74 | 75 | $term = Normalizer::normalize( $term, Normalizer::FORM_C ); //Normalize decomposed unicode characters #1184 |
75 | 76 | if ($this->rest) { |