From: Ævar Arnfjörð Bjarmason Date: Tue, 11 Oct 2005 05:09:40 +0000 (+0000) Subject: * Re-arranged the form to show the username and uid in the user profile tab X-Git-Tag: 1.6.0~1475 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=6e972b09faba9b9bc1ee1b1e011f155e5e6f4291;p=lhc%2Fweb%2Fwiklou.git * Re-arranged the form to show the username and uid in the user profile tab --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 9911815bdc..e0fe2960f7 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -440,10 +440,6 @@ class PreferencesForm { } else if ( '' != $status ) { $wgOut->addWikitext( $message . "\n----" ); } - $uname = $wgUser->getName(); - $uid = $wgUser->getID(); - - $wgOut->addWikiText( '
' . wfMsg( 'prefslogintext', $uname, $uid ) . '
' ); $qbs = $wgLang->getQuickbarSettings(); $skinNames = $wgLang->getSkinNames(); @@ -506,6 +502,21 @@ class PreferencesForm { $wgOut->addHTML( "
\n" . wfMsg('prefs-personal') . "\n\n"); + $wgOut->addHTML( + $this->addRow( + wfMsg( 'username'), + $wgUser->getName() + ) + ); + + $wgOut->addHTML( + $this->addRow( + wfMsg( 'uid' ), + $wgUser->getID() + ) + ); + + if ($wgAllowRealName) { $wgOut->addHTML( $this->addRow(