Author: weaverryan
Date: 2010-02-09 04:56:07 +0100 (Tue, 09 Feb 2010)
New Revision: 27774
Modified:
plugins/sfSympalBlogPlugin/branches/1.4/modules/sympal_blog/lib/Basesympal_blogActions.class.php
Log:
[1.4][sfSympalBlogPlugin][1.0] Changing function call to be compatible with
changes to sfSympalTagsPlugin due to r27773
Modified:
plugins/sfSympalBlogPlugin/branches/1.4/modules/sympal_blog/lib/Basesympal_blogActions.class.php
===================================================================
---
plugins/sfSympalBlogPlugin/branches/1.4/modules/sympal_blog/lib/Basesympal_blogActions.class.php
2010-02-09 03:55:33 UTC (rev 27773)
+++
plugins/sfSympalBlogPlugin/branches/1.4/modules/sympal_blog/lib/Basesympal_blogActions.class.php
2010-02-09 03:56:07 UTC (rev 27774)
@@ -21,7 +21,6 @@
$this->menuItem = $this->getBlogMenuItem();
$this->pager =
Doctrine::getTable('sfSympalBlogPost')->retrieveBlogMonth($month, $year);
$this->content = $this->pager->getResults();
-
$this->breadcrumbsTitle = date('M Y', strtotime($month.'/01/'.$year));
$this->title = 'Posts for the month of ' . $this->breadcrumbsTitle;
@@ -41,8 +40,15 @@
$tag = $request->getParameter('tag');
+ // setup the page
+ $q =
Doctrine::getTable('sfSympalTag')->getContentQueryByTag('sfSympalBlogPost',
$tag);
+ $q->orderBy('c.date_published DESC');
+
+ $this->pager = new sfDoctrinePager('sfSympalContent',
sfSympalConfig::get('rows_per_page'));
+ $this->pager->setQuery($q);
+ $this->pager->init();
+
$this->menuItem = $this->getBlogMenuItem();
- $this->pager =
Doctrine::getTable('sfSympalTag')->retrieveContentByTag('sfSympalBlogPost',
$tag);
$this->content = $this->pager->getResults();
$this->breadcrumbsTitle = $tag;
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.