(bug 5367) Logic error in blank summaries handler caused the hash to keep being regen...
authorRob Church <robchurch@users.mediawiki.org>
Tue, 28 Mar 2006 00:03:23 +0000 (00:03 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 28 Mar 2006 00:03:23 +0000 (00:03 +0000)
includes/EditPage.php

index 3e8c46e..19a15b7 100644 (file)
@@ -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( "<input type=\"hidden\" name=\"wpAutoSummary\" value=\"$autosumm\" />\n" );
 
                if ( $this->isConflict ) {