diff --git a/core/model/Translatable.php b/core/model/Translatable.php index 9cac41b0a..020e3d8c5 100755 --- a/core/model/Translatable.php +++ b/core/model/Translatable.php @@ -487,6 +487,8 @@ class Translatable extends DataObjectDecorator { } function alternateGetByUrl($urlSegment, $extraFilter, $cache = null, $orderby = null) { + if(!Translatable::is_enabled()) return; + $SQL_URLSegment = Convert::raw2sql($urlSegment); Translatable::disable(); $record = DataObject::get_one('SiteTree', "URLSegment = '{$SQL_URLSegment}'");