Skip to content

Commit ce13d13

Browse files
Hackwarbrianteeman
andauthored
[4.4] Finder: Fixing language of token (#42693)
* Finder: Fixing language of token * Update administrator/components/com_finder/src/Indexer/Token.php Co-authored-by: Brian Teeman <[email protected]> * Update Token.php --------- Co-authored-by: Brian Teeman <[email protected]>
1 parent b0663ca commit ce13d13

File tree

1 file changed

+2
-1
lines changed
  • administrator/components/com_finder/src/Indexer

1 file changed

+2
-1
lines changed

administrator/components/com_finder/src/Indexer/Token.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ public function __construct($term, $lang, $spacer = ' ')
144144
// Tokens can be a single word or an array of words representing a phrase.
145145
if (is_array($term)) {
146146
// Populate the token instance.
147+
$langs = array_fill(0, count($term), $lang);
147148
$this->term = implode($spacer, $term);
148-
$this->stem = implode($spacer, array_map([Helper::class, 'stem'], $term, [$lang]));
149+
$this->stem = implode($spacer, array_map([Helper::class, 'stem'], $term, $langs));
149150
$this->numeric = false;
150151
$this->common = false;
151152
$this->phrase = true;

0 commit comments

Comments
 (0)