Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Commit

Permalink
fixed #6 - [Demo-Basic] Blog not working
Browse files Browse the repository at this point in the history
  • Loading branch information
fashxp authored Oct 22, 2018
1 parent d522a18 commit 26424d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AppBundle/Controller/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function indexAction(Request $request)

// archive information, we have to do this in pure SQL
$db = \Pimcore\Db::get();
$ranges = $db->fetchCol("SELECT DATE_FORMAT(FROM_UNIXTIME(date), '%Y-%c') as ranges FROM object_" . $blogList->classId . " GROUP BY DATE_FORMAT(FROM_UNIXTIME(date), '%b-%Y') ORDER BY ranges ASC");
$ranges = $db->fetchCol("SELECT DATE_FORMAT(FROM_UNIXTIME(date), '%Y-%c') as ranges FROM object_" . $blogList->getClassId() . " GROUP BY DATE_FORMAT(FROM_UNIXTIME(date), '%b-%Y') ORDER BY ranges ASC");
$this->view->archiveRanges = $ranges;

if ($request->get('pdf')) {
Expand Down

0 comments on commit 26424d4

Please # to comment.