$id = $this->mTitle->getArticleID( Title::GAID_FOR_UPDATE );
$error = '';
- if ( $this->doDeleteArticle( $reason, $suppress, $id, &$error ) ) {
+ if ( $this->doDeleteArticle( $reason, $suppress, $id, $error ) ) {
$deleted = $this->mTitle->getPrefixedText();
$wgOut->setPagetitle( wfMsg( 'actioncomplete' ) );
* @param $commit boolean defaults to true, triggers transaction end
* @return boolean true if successful
*/
- public function doDeleteArticle( $reason, $suppress = false, $id = 0, $commit = true, $error='' ) {
+ public function doDeleteArticle( $reason, $suppress = false, $id = 0, $commit = true, &$error='' ) {
global $wgDeferredUpdateList, $wgUseTrackbacks;
wfDebug( __METHOD__ . "\n" );
$error = '';
// Luckily, Article.php provides a reusable delete function that does the hard work for us
- if ( $article->doDeleteArticle( $reason, false, 0, true, &$error ) ) {
+ if ( $article->doDeleteArticle( $reason, false, 0, true, $error ) ) {
return array();
} else {
return array( array( 'cannotdelete', $article->mTitle->getPrefixedText() ) );