diff --git a/administrator/components/com_finder/src/Indexer/Result.php b/administrator/components/com_finder/src/Indexer/Result.php index 6cc6470804a74..2e1547d3ab53d 100644 --- a/administrator/components/com_finder/src/Indexer/Result.php +++ b/administrator/components/com_finder/src/Indexer/Result.php @@ -392,7 +392,7 @@ public function getTaxonomy($branch = null) * * @since 2.5 */ - public function addTaxonomy($branch, $title, $state = 1, $access = 1, $language = '') + public function addTaxonomy($branch, $title, $state = 1, $access = 1, $language = '*') { // We can't add taxonomies with empty titles if (!trim($title)) { @@ -427,7 +427,7 @@ public function addTaxonomy($branch, $title, $state = 1, $access = 1, $language * * @since 4.0.0 */ - public function addNestedTaxonomy($branch, ImmutableNodeInterface $contentNode, $state = 1, $access = 1, $language = '') + public function addNestedTaxonomy($branch, ImmutableNodeInterface $contentNode, $state = 1, $access = 1, $language = '*') { // We can't add taxonomies with empty titles if (!trim($contentNode->title)) { diff --git a/administrator/components/com_finder/src/Indexer/Taxonomy.php b/administrator/components/com_finder/src/Indexer/Taxonomy.php index d24ba0afc1276..969e53d7609ee 100644 --- a/administrator/components/com_finder/src/Indexer/Taxonomy.php +++ b/administrator/components/com_finder/src/Indexer/Taxonomy.php @@ -68,7 +68,7 @@ public static function addBranch($title, $state = 1, $access = 1) $node->state = $state; $node->access = $access; $node->parent_id = 1; - $node->language = ''; + $node->language = '*'; return self::storeNode($node, 1); } @@ -87,7 +87,7 @@ public static function addBranch($title, $state = 1, $access = 1) * @since 2.5 * @throws \RuntimeException on database error. */ - public static function addNode($branch, $title, $state = 1, $access = 1, $language = '') + public static function addNode($branch, $title, $state = 1, $access = 1, $language = '*') { // Get the branch id, insert it if it does not exist. $branchId = static::addBranch($branch); @@ -116,7 +116,7 @@ public static function addNode($branch, $title, $state = 1, $access = 1, $langua * * @since 4.0.0 */ - public static function addNestedNode($branch, NodeInterface $node, $state = 1, $access = 1, $language = '', $branchId = null) + public static function addNestedNode($branch, NodeInterface $node, $state = 1, $access = 1, $language = '*', $branchId = null) { if (!$branchId) { // Get the branch id, insert it if it does not exist.