1
0
Fork 0
mirror of https://bitbucket.org/vertlach/iusethis.git synced 2024-06-17 07:30:50 +03:00

error fixing

This commit is contained in:
Alexander Yakovlev 2017-01-18 16:27:42 +07:00
parent 1db1eb199d
commit 46057f1427
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ class ApiIUT extends ApiBase {
$this->dieUsageMsg( array( 'missingparam', 'pageId' ) );
}
$this->vote = new Vote( $pageId );
$this->vote = new IUT( $pageId );
switch ( $action ) {
case 'delete':

2
IUT.js
View file

@ -46,7 +46,7 @@ var IUT = function IUT() {
*/
this.unVote = function( PageID ) {
( new mw.Api() ).postWithToken( 'edit', {
action: 'voteny',
action: 'iusethis',
format: 'json',
what: 'delete',
pageId: PageID

View file

@ -46,7 +46,7 @@ class IUTHooks {
$title = $wgOut->getTitle();
if ( $title ) {
$articleID = $title->getArticleID();
$vote = new Vote( $articleID );
$vote = new IUT( $articleID );
$output = $vote->display();
}