FIX refactored deprecated DB::getConn()

This commit is contained in:
Franco Springveldt 2017-09-14 11:37:51 +12:00
parent 7823b40b57
commit 87e5cfcad7

View File

@ -528,7 +528,7 @@ class Blog extends Page implements PermissionProvider
sprintf('"SiteTree%s"."ID" = "BlogPost%s"."ID"', $stage, $stage)
);
$conn = DB::getConn();
$conn = DB::get_conn();
// Filter by year
$yearCond = $conn->formattedDatetimeClause('"BlogPost"."PublishDate"', '%Y');