private function upVote()
 {
     $pageId = $this->getRequest()->getVal('pageId');
     if (!$pageId) {
         MWDebug::warning("no pageId to upvote");
         return;
     }
     $table = "user_completed_images";
     $conds = array("uci_article_id = {$pageId}");
     $val = $this->getVoteMultiplier();
     MWDebug::log("val: " . $val);
     $values = array("uci_upvotes = uci_upvotes + {$val}");
     $dbw = wfGetDB(DB_MASTER);
     $dbw->update($table, $values, $conds);
     $this->recordImageVote($this->getUser(), $pageId, 1);
     // check if the image has enough votes that it will be added to the host page
     $row = $dbw->selectRow($table, array("uci_image_name", "uci_article_name", "uci_upvotes"), array("uci_article_id" => $pageId), __METHOD__);
     // title is used for logging purposes
     $title = Title::newFromText($row->uci_article_name);
     if ($row->uci_upvotes < UCIPatrol::UCI_UPVOTES) {
         UCIPatrol::logUCIUpVote($title, $pageId);
     } else {
         UCIPatrol::addImageToCache($pageId, $row->uci_article_name, UCIPatrol::fileFromRow($row));
         UCIPatrol::logUCIAdded($title, $pageId);
     }
     $this->skip();
 }