From 9eb97be79347e73b28201d12819c65169ca9dc80 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 26 May 2008 12:15:21 +0000 Subject: [PATCH] No, something that looks stupid *is* in fact ipso facto stupid -- unless it includes a comment to explain why it's not. --- includes/api/ApiDelete.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 9ab29ba699..5f1dd476be 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -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) -- 2.20.1