class ApiLogout extends ApiBase {
public function __construct($main, $action) {
- parent :: __construct($main, $action, 'lo');
+ parent :: __construct($main, $action);
}
public function execute() {
$wgUser->logout();
}
- protected function getAllowedParams() {
+ public function getAllowedParams() {
return array ();
}
- protected function getParamDescription() {
+ public function getParamDescription() {
return array ();
}
- protected function getDescription() {
+ public function getDescription() {
return array (
'This module is used to logout and clear session data'
);