Skip to content

Commit 55b8f7d

Browse files
author
sonja
committed
Add missing delimiter, fixes #1
1 parent d1cd2a7 commit 55b8f7d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "texnixe/similar",
33
"description": "Find similar pages or files based on similarities between fields",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"type": "kirby-plugin",
66
"license": "MIT",
77
"authors": [

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* Kirby 3 Similar Plugin
66
*
7-
* @version 1.0.2
7+
* @version 1.0.3
88
* @author Sonja Broda <[email protected]>
99
* @copyright Sonja Broda <[email protected]>
1010
* @link https://github.com/texnixe/kirby3-similar

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Kirby 3 Similar plugin",
44
"author": "Sonja Broda <[email protected]>",
55
"license": "MIT",
6-
"version": "1.0.2",
6+
"version": "1.0.3",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/texnixe/kirby3-similar"

src/Similar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function data($basis, $options = [])
5454
//$searchField = null;
5555
foreach($fields as $field => $factor) {
5656
// only include fields that have values
57-
$values = $basis->{$field}()->split(',');
57+
$values = $basis->{$field}()->split($delimiter);
5858
if(count($values) > 0) {
5959
$searchItems[$field][$field] = $values;
6060
$searchItems[$field]['factor'] = $factor;

0 commit comments

Comments
 (0)