Partial revert of r35058: when something looks stupid, that doesn't mean it is. This...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 26 May 2008 10:14:58 +0000 (10:14 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 26 May 2008 10:14:58 +0000 (10:14 +0000)
includes/api/ApiDelete.php

index aac57f5..9ab29ba 100644 (file)
@@ -121,8 +121,8 @@ class ApiDelete extends ApiBase {
                // Auto-generate a summary, if necessary
                if(is_null($reason))
                {
-                       // $hasHistory = false;
-                       $reason = $article->generateReason(false);
+                       $hasHistory = false;
+                       $reason = $article->generateReason($hasHistory);
                        if($reason === false)
                                return array(array('cannotdelete'));
                }