From: Ævar Arnfjörð Bjarmason Date: Tue, 26 Apr 2005 16:01:28 +0000 (+0000) Subject: * This fixes the problem of the real name field and the email address field X-Git-Tag: 1.5.0alpha1~122 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=a018f2227d115ce2d41d4bbf2e4b0a118dd5670f;p=lhc%2Fweb%2Fwiklou.git * This fixes the problem of the real name field and the email address field not being displayed if the real name is empty() --- 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' />"