From: Roan Kattouw Date: Mon, 26 May 2008 10:14:58 +0000 (+0000) Subject: Partial revert of r35058: when something looks stupid, that doesn't mean it is. This... X-Git-Tag: 1.31.0-rc.0~47379 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=34e95f7e8bd4d17281accf3d85a91fc7b80fef73;p=lhc%2Fweb%2Fwiklou.git 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. --- 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')); }