From 10d63bf2d89e5df2b9f336f0b0986b18f2eb0596 Mon Sep 17 00:00:00 2001 From: addshore Date: Wed, 14 May 2014 17:30:53 +0100 Subject: [PATCH] Remove unused parameters --- src/MediawikiApi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MediawikiApi.php b/src/MediawikiApi.php index c5cf9f0..c571046 100644 --- a/src/MediawikiApi.php +++ b/src/MediawikiApi.php @@ -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();