Skip to content

Commit

Permalink
Compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 31, 2018
1 parent c36763a commit 354de4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
1. [](#improved)
* Minor CSS improvements for search field
1. [](#bugfix)
* Set the db index file as a property of `GravTNTSearch` to allow for better overriding
* Put better type checking around `onTNTSearchIndex()` example that indexes `page.header.author`

# v3.0.0-beta.1
Expand Down
4 changes: 1 addition & 3 deletions classes/GravTNTSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GravTNTSearch
public $tnt;
protected $options;
protected $bool_characters = ['-', '(', ')', 'or'];
protected $index;
protected $index = 'grav.index';
protected $language;

public function __construct($options = [])
Expand All @@ -34,8 +34,6 @@ public function __construct($options = [])
$default = $language->getDefault();
$this->language = $active ? $active : $default;
$this->index = $this->language . '.index';
} else {
$this->index = 'grav.index';
}

if (!file_exists($data_path)) {
Expand Down

0 comments on commit 354de4d

Please sign in to comment.