Skip to content

Commit 883afa7

Browse files
committed
Fix returning of tokens by the API
1 parent 10d63bf commit 883afa7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

RELEASENOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ These are the release notes for the [mediawiki-api-base](README.md).
22

33
## Version 0.2 (under development)
44

5+
## Version 0.1.2 (25 May 2014)
6+
7+
* Fix issue where API tokens were not returned
8+
59
## Version 0.1 (12 May 2014)
610

711
* Initial release after split from mediawiki-api lib

src/MediawikiApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function logout() {
142142
* @return string
143143
*/
144144
public function getToken( $type = 'edit' ) {
145-
$this->session->getToken( $type );
145+
return $this->session->getToken( $type );
146146
}
147147

148148
/**

0 commit comments

Comments
 (0)