mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Merge pull request #58 from s-m/reEnableFilter-Bug
BUG fixed possibly undefined variable, fixes #57
This commit is contained in:
commit
56384c2e67
@ -1640,6 +1640,7 @@ class Translatable extends DataExtension implements PermissionProvider {
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function augmentValidURLSegment() {
|
public function augmentValidURLSegment() {
|
||||||
|
$reEnableFilter = false;
|
||||||
if(self::locale_filter_enabled()) {
|
if(self::locale_filter_enabled()) {
|
||||||
self::disable_locale_filter();
|
self::disable_locale_filter();
|
||||||
$reEnableFilter = true;
|
$reEnableFilter = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user