mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
FIX refactored deprecated DB::getConn()
This commit is contained in:
parent
7823b40b57
commit
87e5cfcad7
@ -528,7 +528,7 @@ class Blog extends Page implements PermissionProvider
|
|||||||
sprintf('"SiteTree%s"."ID" = "BlogPost%s"."ID"', $stage, $stage)
|
sprintf('"SiteTree%s"."ID" = "BlogPost%s"."ID"', $stage, $stage)
|
||||||
);
|
);
|
||||||
|
|
||||||
$conn = DB::getConn();
|
$conn = DB::get_conn();
|
||||||
|
|
||||||
// Filter by year
|
// Filter by year
|
||||||
$yearCond = $conn->formattedDatetimeClause('"BlogPost"."PublishDate"', '%Y');
|
$yearCond = $conn->formattedDatetimeClause('"BlogPost"."PublishDate"', '%Y');
|
||||||
|
Loading…
Reference in New Issue
Block a user