From: Rob Church Date: Tue, 28 Mar 2006 00:03:23 +0000 (+0000) Subject: (bug 5367) Logic error in blank summaries handler caused the hash to keep being regen... X-Git-Tag: 1.6.0~98 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=2374fc74965165553c20fc7a2fd9712478a4216f;p=lhc%2Fweb%2Fwiklou.git (bug 5367) Logic error in blank summaries handler caused the hash to keep being regenerated. We want to preserve the hash of the original (i.e. autoprovided) summary. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 3e8c46e0c4..19a15b7eec 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1083,7 +1083,7 @@ END # For a bit more sophisticated detection of blank summaries, hash the # automatic one and pass that in a hidden field. - $autosumm = md5( $this->summary ); + $autosumm = $this->autoSumm ? $this->autoSumm : md5( $this->summary ); $wgOut->addHTML( "\n" ); if ( $this->isConflict ) {