mirror of
https://github.com/getgrav/grav.git
synced 2026-07-07 07:22:59 +02:00
Fixed issue with search plugins not being able to switch between page translations
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user