* This fixes the problem of the real name field and the email address field
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 26 Apr 2005 16:01:28 +0000 (16:01 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 26 Apr 2005 16:01:28 +0000 (16:01 +0000)
  not being displayed if the real name is empty()

includes/SpecialPreferences.php

index 3bbcb3d..77833ed 100644 (file)
@@ -428,12 +428,16 @@ class PreferencesForm {
 
                $wgOut->addHTML( "<fieldset>\n<legend>" . wfMsg('prefs-personal') . "</legend>\n<table>\n");
 
-               if (!empty($this->mRealName)) {
+               if ($wgAllowRealName) {
                        $wgOut->addHTML(
                                $this->addRow(
                                        wfMsg('yourrealname'),
                                        "<input type='text' name='wpRealName' value=\"{$this->mRealName}\" size='25' />"
-                               ) . 
+                               )
+                       );
+               }
+               if ($wgEnableEmail) {
+                       $wgOut->addHTML(
                                $this->addRow(
                                        wfMsg( 'youremail' ),
                                        "<input type='text' name='wpUserEmail' value=\"{$this->mUserEmail}\" size='25' />"