No, something that looks stupid *is* in fact ipso facto stupid -- unless it includes...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 26 May 2008 12:15:21 +0000 (12:15 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 26 May 2008 12:15:21 +0000 (12:15 +0000)
includes/api/ApiDelete.php

index 9ab29ba..5f1dd47 100644 (file)
@@ -121,6 +121,8 @@ class ApiDelete extends ApiBase {
                // Auto-generate a summary, if necessary
                if(is_null($reason))
                {
+                       # Need to pass a throwaway variable because generateReason expects
+                       # a reference
                        $hasHistory = false;
                        $reason = $article->generateReason($hasHistory);
                        if($reason === false)