From a018f2227d115ce2d41d4bbf2e4b0a118dd5670f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 26 Apr 2005 16:01:28 +0000 Subject: [PATCH] * This fixes the problem of the real name field and the email address field not being displayed if the real name is empty() --- includes/SpecialPreferences.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 3bbcb3dbc2..77833ed751 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -428,12 +428,16 @@ class PreferencesForm { $wgOut->addHTML( "
\n" . wfMsg('prefs-personal') . "\n\n"); - if (!empty($this->mRealName)) { + if ($wgAllowRealName) { $wgOut->addHTML( $this->addRow( wfMsg('yourrealname'), "mRealName}\" size='25' />" - ) . + ) + ); + } + if ($wgEnableEmail) { + $wgOut->addHTML( $this->addRow( wfMsg( 'youremail' ), "mUserEmail}\" size='25' />" -- 2.20.1