diff --git a/code/GoogleSitemap.php b/code/GoogleSitemap.php index cbd5fdf..7a32f80 100755 --- a/code/GoogleSitemap.php +++ b/code/GoogleSitemap.php @@ -44,7 +44,7 @@ class GoogleSitemap extends Controller { $filter = ''; if(self::$use_show_in_search) { - $filter = '`ShowInSearch` = 1'; + $filter = 'ShowInSearch = 1'; } $this->Pages = Versioned::get_by_stage('SiteTree', 'Live', $filter);