API CHANGE: NOW() replaced with DB-specific version

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72917 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Geoff Munn 2009-03-11 21:45:58 +00:00
parent 61d312643e
commit d0ec64ee0e

View File

@ -92,7 +92,7 @@ class SideReport_RecentlyEdited extends SideReport {
return _t('SideReport.LAST2WEEKS',"Pages edited in the last 2 weeks");
}
function records() {
return DataObject::get("SiteTree", "\"SiteTree\".\"LastEdited\" > NOW() - INTERVAL '14 DAY'", "\"SiteTree\".\"LastEdited\" DESC");
return DataObject::get("SiteTree", "\"SiteTree\".\"LastEdited\" > " . DB::getConn()->now() . " - INTERVAL '14 DAY'", "\"SiteTree\".\"LastEdited\" DESC");
}
function fieldsToShow() {
return array(