Forgot to commit this file in r99250.
authorPlatonides <platonides@users.mediawiki.org>
Fri, 7 Oct 2011 21:00:06 +0000 (21:00 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 7 Oct 2011 21:00:06 +0000 (21:00 +0000)
includes/parser/ParserOutput.php

index 3e5a3f2..1a43620 100644 (file)
@@ -158,6 +158,8 @@ class ParserOutput extends CacheTime {
                if ( $this->mEditSectionTokens ) {
                        return preg_replace_callback( ParserOutput::EDITSECTION_REGEX,
                                array( &$this, 'replaceEditSectionLinksCallback' ), $this->mText );
+               } else {
+                       return preg_replace( ParserOutput::EDITSECTION_REGEX, '\3', $this->mText );
                }
                return $this->mText;
        }