From 1d1104955a802bf56c699174de0b891b30de1679 Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Mon, 19 Nov 2007 03:59:45 +0000 Subject: [PATCH] * Fixed wgReason URL parameter to action=delete. --- RELEASE-NOTES | 1 + includes/Article.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index bdf4a83191..27a4e0eccf 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -163,6 +163,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN the page * Check for if IP is blocked as part of a range when unblocking (see above bug- fix) was faulty. Now fixed. +* Fixed wgReason URL parameter to action=delete. === API changes in 1.12 === diff --git a/includes/Article.php b/includes/Article.php index 75ac533b6e..e4fcc33d9a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1960,7 +1960,7 @@ class Article { // Generate deletion reason $hasHistory = false; - $reason = $this->generateReason($hasHistory); + if ( !$reason ) $reason = $this->generateReason($hasHistory); // If the page has a history, insert a warning if( $hasHistory && !$confirm ) { -- 2.20.1