mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
BUGFIX: show in search filter not quoted for postgresql
This commit is contained in:
parent
e0222dc8b7
commit
8d99fa75f2
@ -43,8 +43,9 @@ class GoogleSitemap extends Controller {
|
||||
public function Items() {
|
||||
$filter = '';
|
||||
|
||||
$bt = defined('DB::USE_ANSI_SQL') ? "\"" : "`";
|
||||
if(self::$use_show_in_search) {
|
||||
$filter = 'ShowInSearch = 1';
|
||||
$filter = "{$bt}ShowInSearch{$bt} = 1";
|
||||
}
|
||||
|
||||
$this->Pages = Versioned::get_by_stage('SiteTree', 'Live', $filter);
|
||||
|
Loading…
Reference in New Issue
Block a user