Skip to content

Commit

Permalink
Making the blogs-per-page dynamic.
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Jan 15, 2011
1 parent 70f695a commit ae064ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ioBlog/lib/BaseioBlogActions.class.php
Expand Up @@ -16,7 +16,7 @@ public function executeIndex(sfWebRequest $request)
$q = $this->setupQueryFromRequest($request);
$this->title = $this->getTitleFromRequest($request);

$this->pager = new sfDoctrinePager('ioBlog', 10);
$this->pager = new sfDoctrinePager('ioBlog', sfConfig::get('app_io_blog_per_page', 10));
$this->pager->setQuery($q);
$this->pager->setPage($request->getParameter('page', 1));
$this->pager->init();
Expand Down

0 comments on commit ae064ed

Please sign in to comment.