Get message in wfEmptyMsg using the user's interface language; closer to the previous...
authorHappy-melon <happy-melon@users.mediawiki.org>
Fri, 26 Mar 2010 11:21:14 +0000 (11:21 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Fri, 26 Mar 2010 11:21:14 +0000 (11:21 +0000)
includes/EditPage.php
includes/GlobalFunctions.php

index 0eb5e98..10efc31 100644 (file)
@@ -1704,14 +1704,16 @@ INPUTS
                }
        }
 
+       /**
+        * Give a chance for site and per-namespace customizations of
+        * terms of service summary link that might exist separately
+        * from the copyright notice.
+        * 
+        * This will display between the save button and the edit tools,
+        * so should remain short!
+        */
        protected function showTosSummary() {
                $msg = 'editpage-tos-summary';
-               // Give a chance for site and per-namespace customizations of
-               // terms of service summary link that might exist separately
-               // from the copyright notice.
-               //
-               // This will display between the save button and the edit tools,
-               // so should remain short!
                wfRunHooks( 'EditPageTosSummary', array( $this->mTitle, &$msg ) );
                $text = wfMsg( $msg );
                if( !wfEmptyMsg( $msg, $text ) && $text !== '-' ) {
index a038fb0..762fd1e 100644 (file)
@@ -2274,7 +2274,7 @@ function wfAppendToArrayIfNotDefault( $key, $value, $default, &$changed ) {
  */
 function wfEmptyMsg( $key ) {
        global $wgMessageCache;
-       return $wgMessageCache->get( $key ) === false;
+       return $wgMessageCache->get( $key, /*useDB*/true, /*content*/false ) === false;
 }
 
 /**