Remove ugly <special_version_prefix> and <special_version_postfix> from
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 13 Aug 2004 15:57:24 +0000 (15:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 13 Aug 2004 15:57:24 +0000 (15:57 +0000)
the Special:Version page. Use them as wikitext if they are not set to &nbsp;

includes/SpecialVersion.php
languages/Language.php

index 7c96a24..1cc9e4f 100644 (file)
@@ -5,7 +5,12 @@ function wfSpecialVersion()
        global $wgUser, $wgOut, $wgVersion;
        $fname = "wfSpecialVersion";
 
-       $wgOut->addHTML( wfMsg( 'special_version_prefix' ) . '
+       $prefix = wfMsg( 'special_version_prefix' );
+       $postfix = wfMsg( 'special_version_postfix' );
+       if( $prefix != '&nbsp;' ) {
+               $wgOut->addWikiText( $prefix );
+       }
+       $wgOut->addHTML( '
  <p>This wiki is powered by <b><a href="http://www.mediawiki.org/">MediaWiki</a></b>,  
  copyright (C) 2001-2004 by Magnus Manske, Brion Vibber, Lee Daniel Crocker,
  Tim Starling, Erik M&ouml;ller, and others.</p>
@@ -24,7 +29,10 @@ function wfSpecialVersion()
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  or <a href="http://www.gnu.org/copyleft/gpl.html">read it online</a></p>
-       '.wfMsg( 'special_version_postfix' ) );
+       ');
+       if( $postfix != '&nbsp;' ) {
+               $wgOut->addWikiText( $postfix );
+       }
        $versions = array(
                "[http://wikipedia.sf.net/ MediaWiki]" => $wgVersion,
                "[http://www.php.net/ PHP]" => phpversion() . " (" . php_sapi_name() . ")",
index eb34023..e78bae0 100644 (file)
@@ -226,8 +226,8 @@ $wgLanguageNamesEn =& $wgLanguageNames;
 
 
 /* private */ $wgAllMessagesEn = array(
-'special_version_prefix' => '',
-'special_version_postfix' => '',
+'special_version_prefix' => '&nbsp;',
+'special_version_postfix' => '&nbsp;',
 # User preference toggles
 'tog-hover'            => 'Show hoverbox over wiki links',
 'tog-underline' => 'Underline links',