From: Niklas Laxström Date: Fri, 27 Jun 2008 07:32:06 +0000 (+0000) Subject: * Add id to preferences form, requested by Splarka X-Git-Tag: 1.31.0-rc.0~46871 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=114f8ed01cff664ca5386a85fd1f98b94c191fbc;p=lhc%2Fweb%2Fwiklou.git * Add id to preferences form, requested by Splarka --- diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index 6a16f1cba0..b3468a3c6b 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -542,7 +542,6 @@ class PreferencesForm { $togs = User::getToggles(); $titleObj = SpecialPage::getTitleFor( 'Preferences' ); - $action = $titleObj->escapeLocalURL(); # Pre-expire some toggles so they won't show if disabled $this->mUsedToggles[ 'shownumberswatching' ] = true; @@ -588,14 +587,19 @@ class PreferencesForm { # - $wgOut->addHTML( "
" ); - $wgOut->addHTML( "
" ); + $wgOut->addHTML( + Xml::openElement( 'form', array( + 'action' => $titleObj->getLocalUrl(), + 'method' => 'post', + 'id' => 'mw-preferences-form', + ) ) . + Xml::openElement( 'div', array( 'id' => 'preferences' ) ) + ); # User data $wgOut->addHTML( - Xml::openElement( 'fieldset ' ) . - Xml::element( 'legend', null, wfMsg('prefs-personal') ) . + Xml::fieldset( wfMsg('prefs-personal') ) . Xml::openElement( 'table' ) . $this->tableRow( Xml::element( 'h2', null, wfMsg( 'prefs-personal' ) ) ) );