Skip to content

Commit

Permalink
fixing tablePrefix for blog plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Dec 28, 2009
1 parent 79a911b commit 60f0f56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/app_model.php
Expand Up @@ -111,7 +111,7 @@ function __feedableFind(&$Model, $query)
$sql .= ', '.implode( ', ', $_fields );
}

$sql .= ' FROM '.$Model->useDbConfig.'_'.$Model->useTable;
$sql .= ' FROM '.$Model->tablePrefix.$Model->useTable;

if ( isset( $query['feed'] ) )
{
Expand Down
2 changes: 1 addition & 1 deletion app/plugins/blog/models/post.php
Expand Up @@ -53,7 +53,7 @@ class Post extends BlogAppModel
'Tag' =>
array(
'className' => 'Blog.Tag',
'joinTable' => 'posts_tags',
'joinTable' => 'blog_posts_tags',
'foreignKey' => 'post_id',
'associationForeignKey' => 'tag_id',
'unique' => true,
Expand Down
2 changes: 1 addition & 1 deletion app/plugins/blog/models/tag.php
Expand Up @@ -39,7 +39,7 @@ class Tag extends BlogAppModel
'Post' =>
array(
'className' => 'Blog.Post',
'joinTable' => 'posts_tags',
'joinTable' => 'blog_posts_tags',
'foreignKey' => 'tag_id',
'associationForeignKey' => 'post_id',
'unique' => true,
Expand Down

0 comments on commit 60f0f56

Please sign in to comment.