(bug 5367) Logic error in blank summaries handler caused the hash to keep being regen...
[lhc/web/wiklou.git] / 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 ) {