From 6e972b09faba9b9bc1ee1b1e011f155e5e6f4291 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 11 Oct 2005 05:09:40 +0000 Subject: [PATCH] * Re-arranged the form to show the username and uid in the user profile tab --- includes/SpecialPreferences.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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( -- 2.20.1