Fixed issue with search plugins not being able to switch between page translations

This commit is contained in:
Matias Griese
2020-02-14 13:55:06 +02:00
parent ec8bf9357a
commit 52a704e53d
2 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,11 @@
# v1.6.22
## mm/dd/2020
1. [](#new)
* Added `Pages::reset()` method
1. [](#bugfix)
* Fixed issue with search plugins not being able to switch between page translations
# v1.6.21
## 02/11/2020

View File

@@ -236,6 +236,16 @@ class Pages
$this->check_method = strtolower($method);
}
/**
* Reset pages (used in search indexing etc).
*/
public function reset()
{
$this->initialized = false;
$this->init();
}
/**
* Class initialization. Must be called before using this class.
*/