$error = '';
// Luckily, Article.php provides a reusable delete function that does the hard work for us
- return $page->doDeleteArticleReal( $reason, false, 0, true, $error );
+ return $page->doDeleteArticleReal( $reason, false, 0, true, $error, $user );
}
/**
return 'csrf';
}
- public function getExamplesMessages() {
+ protected function getExamplesMessages() {
return array(
'action=delete&title=Main%20Page&token=123ABC'
=> 'apihelp-delete-example-simple',