Skip to content

Commit

Permalink
got the blog working again
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jan 30, 2010
1 parent cf4efa6 commit d8eac75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/libs/models/behaviors/commentable.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CommentableBehavior extends ModelBehavior {
* @var array
*/
var $defaults = array(
'plugin' => 'Comment',
'plugin' => 'Management',
'class' => 'Comment', // name of Comment model
'foreign_key' => 'foreign_id', // foreign key of Comment model
'counter_cache' => true,
Expand Down
2 changes: 1 addition & 1 deletion infinitas/blog/blog_app_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function beforeFilter() {
$this->set('postPending', ClassRegistry::init('Blog.Post')->getPending());
$this->set('postPopular', ClassRegistry::init('Blog.Post')->getPopular());

//$this->set('commentCount', ClassRegistry::init('Management.Comment')->getCounts('Post'));
$this->set('commentCount', ClassRegistry::init('Management.Comment')->getCounts('Post'));
}

/**
Expand Down

0 comments on commit d8eac75

Please sign in to comment.