Permalink
Browse files

use object properties for vote-setting

  • Loading branch information...
1 parent 3664c0c commit 32b3b0a42919a4320073c1233e23feaff1e7f8aa @matzko committed Apr 7, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 includes/core.php
View
@@ -267,13 +267,13 @@ protected function _update_vote( $blog_id = 0, $object_id = 0, $user_id = 0, $vo
);
}
- public function get_vote_total( $blog_id = 0, $object_id = 0, $user_id = 0 )
+ public function get_vote_total( $object_id = 0 )
{
global $wpdb;
- $blog_id = (int) $blog_id;
+ $blog_id = (int) $this->blog_id;
$object_id = (int) $object_id;
- $user_id = (int) $user_id;
+ $user_id = (int) $this->user_id;
$table = $this->_model->get_voter_table();

0 comments on commit 32b3b0a

Please sign in to comment.