Skip to content

Commit

Permalink
Remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
addshore committed May 14, 2014
1 parent 2f25051 commit 10d63bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MediawikiApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public function login( ApiUser $apiUser ) {
'lgname' => $apiUser->getUsername(),
'lgpassword' => $apiUser->getPassword()
);
$result = $this->postAction( 'login', $credentials, $apiUser );
$result = $this->postAction( 'login', $credentials );
if ( $result['login']['result'] == "NeedToken" ) {
$result = $this->postAction( 'login', array_merge( array( 'lgtoken' => $result['login']['token'] ), $credentials), $apiUser );
$result = $this->postAction( 'login', array_merge( array( 'lgtoken' => $result['login']['token'] ), $credentials) );
}
if ( $result['login']['result'] == "Success" ) {
$this->isLoggedIn = $apiUser->getUsername();
Expand Down

0 comments on commit 10d63bf

Please sign in to comment.