diff --git a/comments/classes/kohana/comments.php b/comments/classes/kohana/comments.php index 1b54f46..aad5ac1 100644 --- a/comments/classes/kohana/comments.php +++ b/comments/classes/kohana/comments.php @@ -28,7 +28,7 @@ static function get (ORM $model) { public function __construct(ORM $model) { $this->auth = Auth::instance(); $this->model = array ( - 'id' => $model->id, + 'id' => $model->pk(), 'name' => $model->object_name() ); } @@ -145,4 +145,4 @@ protected function get_post () { 'content' => $post['comment-content'] ); } -} \ No newline at end of file +}