From 5f464c0a51533cb060807cbb21dc3f8103f1b223 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 3 Jun 2004 01:25:44 +0000 Subject: [PATCH] use wfMsg() for MediaWiki NS --- includes/RawPage.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/RawPage.php b/includes/RawPage.php index 4f4da38c50..d0b029750e 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -38,6 +38,14 @@ class RawPage { if( !$this->mTitle ) return ''; $t = wfStrencode( $this->mTitle->getDBKey() ); $ns = $this->mTitle->getNamespace(); + # special case + if($ns == NS_MEDIAWIKI) { + $rawtext = wfMsg($t); + if($wgInputEncoding != $this->mCharset) + $rawtext = $wgLang->iconv( $wgInputEncoding, $this->mCharset, $rawtext ); + return $rawtext; + } + # else get it from the DB if(!empty($this->mOldId)) { $sql = "SELECT old_text as text,old_timestamp as timestamp,old_user as user,old_flags as flags FROM old " . "WHERE old_id={$this->mOldId}"; -- 2.20.1