* (bug 6484) Don't do message transformations when preloading messages for editing
authorRob Church <robchurch@users.mediawiki.org>
Thu, 29 Jun 2006 00:18:30 +0000 (00:18 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Thu, 29 Jun 2006 00:18:30 +0000 (00:18 +0000)
RELEASE-NOTES
includes/EditPage.php
includes/GlobalFunctions.php

index 358b6f5..33c0487 100644 (file)
@@ -597,6 +597,7 @@ Some default configuration options have changed:
 * Show some error results in moveBatch.php
 * (bug 6479) Allow specification of the skin to use during HTML dumps
 * (bug 6461) Link to page histories in Special:Newpages
+* (bug 6484) Don't do message transformations when preloading messages for editing
 
 == Compatibility ==
 
index 47e9b53..37f8a99 100644 (file)
@@ -737,7 +737,7 @@ class EditPage {
                $this->textbox1 = $this->mArticle->getContent();
                $this->summary = '';
                if ( !$this->mArticle->exists() && $this->mArticle->mTitle->getNamespace() == NS_MEDIAWIKI )
-                       $this->textbox1 = wfMsgWeirdKey ( $this->mArticle->mTitle->getText() ) ;
+                       $this->textbox1 = wfMsgWeirdKey( $this->mArticle->mTitle->getText() ) ;
                wfProxyCheck();
        }
 
index d1a2394..661b8a6 100644 (file)
@@ -417,11 +417,11 @@ function wfMsgReal( $key, $args, $useDB = true, $forContent=false, $transform =
  */
 function wfMsgWeirdKey ( $key ) {
        $subsource = str_replace ( ' ' , '_' , $key ) ;
-       $source = wfMsg ( $subsource ) ;
+       $source = wfMsgForContentNoTrans( $subsource ) ;
        if ( $source == "&lt;{$subsource}&gt;" ) {
                # Try again with first char lower case
                $subsource = strtolower ( substr ( $subsource , 0 , 1 ) ) . substr ( $subsource , 1 ) ;
-               $source = wfMsg ( $subsource ) ;
+               $source = wfMsgForContentNoTrans( $subsource ) ;
        }
        if ( $source == "&lt;{$subsource}&gt;" ) {
                # Didn't work either, return blank text