From e92a5733a8fb270143bd087b8f4e4c53447542cd Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 13 Aug 2004 15:57:24 +0000 Subject: [PATCH] Remove ugly and from the Special:Version page. Use them as wikitext if they are not set to   --- includes/SpecialVersion.php | 12 ++++++++++-- languages/Language.php | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 7c96a240f7..1cc9e4f6a3 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -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 != ' ' ) { + $wgOut->addWikiText( $prefix ); + } + $wgOut->addHTML( '

This wiki is powered by MediaWiki, copyright (C) 2001-2004 by Magnus Manske, Brion Vibber, Lee Daniel Crocker, Tim Starling, Erik Möller, and others.

@@ -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 read it online

- '.wfMsg( 'special_version_postfix' ) ); + '); + if( $postfix != ' ' ) { + $wgOut->addWikiText( $postfix ); + } $versions = array( "[http://wikipedia.sf.net/ MediaWiki]" => $wgVersion, "[http://www.php.net/ PHP]" => phpversion() . " (" . php_sapi_name() . ")", diff --git a/languages/Language.php b/languages/Language.php index eb34023d47..e78bae00e5 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -226,8 +226,8 @@ $wgLanguageNamesEn =& $wgLanguageNames; /* private */ $wgAllMessagesEn = array( -'special_version_prefix' => '', -'special_version_postfix' => '', +'special_version_prefix' => ' ', +'special_version_postfix' => ' ', # User preference toggles 'tog-hover' => 'Show hoverbox over wiki links', 'tog-underline' => 'Underline links', -- 2.20.1