From 34e95f7e8bd4d17281accf3d85a91fc7b80fef73 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 26 May 2008 10:14:58 +0000 Subject: [PATCH] Partial revert of r35058: when something looks stupid, that doesn't mean it is. This is done because the function in question expects a reference. --- includes/api/ApiDelete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index aac57f5ee4..9ab29ba699 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -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')); } -- 2.20.1