mediawiki:missingarticle to wikitext
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 22 Oct 2005 21:33:59 +0000 (21:33 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 22 Oct 2005 21:33:59 +0000 (21:33 +0000)
includes/DifferenceEngine.php

index dc61864..7b2cadb 100644 (file)
@@ -112,12 +112,12 @@ CONTROL;
 
                $t = $wgTitle->getPrefixedText() . " (Diff: {$this->mOldid}, " .
                  "{$this->mNewid})";
-               $mtext = wfMsg( 'missingarticle', $t );
+               $mtext = wfMsg( 'missingarticle', "<nowiki>$t</nowiki>" );
 
                $wgOut->setArticleFlag( false );
                if ( ! $this->loadText() ) {
                        $wgOut->setPagetitle( wfMsg( 'errorpagetitle' ) );
-                       $wgOut->addHTML( $mtext );
+                       $wgOut->addWikitext( $mtext );
                        wfProfileOut( $fname );
                        return;
                }
@@ -221,9 +221,9 @@ CONTROL;
                if ( ! $this->loadText() ) {
                        $t = $wgTitle->getPrefixedText() . " (Diff: {$this->mOldid}, " .
                          "{$this->mNewid})";
-                       $mtext = wfMsg( 'missingarticle', $t );
+                       $mtext = wfMsg( 'missingarticle', "<nowiki>$t</nowiki>" );
                        $wgOut->setPagetitle( wfMsg( 'errorpagetitle' ) );
-                       $wgOut->addHTML( $mtext );
+                       $wgOut->addWikitext( $mtext );
                        wfProfileOut( $fname );
                        return;
                }