function applyChange($qcid) { //grab tip data from tip id $dbr = wfGetDB(DB_SLAVE); $tipid = $dbr->selectField('qc', array('qc_extra'), array('qc_id' => $qcid)); list($tip_user, $the_tip, $tip_page) = self::getTipData($tipid); //use TipsPatrol's functions $res = TipsPatrol::keepTip($tipid, $tip_page, $the_tip); if ($res) { TipsPatrol::deleteTip($tipid, $tip_page, $the_tip, true, true); } return $res; }