mirror of
https://bitbucket.org/vertlach/iusethis.git
synced 2024-06-17 07:30:50 +03:00
error fixing
This commit is contained in:
parent
1db1eb199d
commit
46057f1427
|
@ -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
2
IUT.js
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue