Merge pull request #2790 from silverstripe-rebelalliance/reEnableFilter

BUG: Stop undefined error for $reEnableFilter being thrown
This commit is contained in:
Ingo Schommer 2014-01-22 01:41:49 -08:00
commit be59fd9237

View File

@ -1488,6 +1488,7 @@ class Translatable extends DataObjectDecorator implements PermissionProvider {
* @return bool
*/
public function augmentValidURLSegment() {
$reEnableFilter = false;
if (self::locale_filter_enabled()) {
self::disable_locale_filter();
$reEnableFilter = true;