Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use object properties for vote-setting

  • Loading branch information...
commit 32b3b0a42919a4320073c1233e23feaff1e7f8aa 1 parent 3664c0c
@matzko authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 includes/core.php
View
6 includes/core.php
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.