From: Ævar Arnfjörð Bjarmason Date: Mon, 2 May 2005 13:28:43 +0000 (+0000) Subject: * Some re-arrangement and cleanup. X-Git-Tag: 1.5.0alpha1~15 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=ae62fe94790eee41f7cc05935c7877180a6497a7;p=lhc%2Fweb%2Fwiklou.git * Some re-arrangement and cleanup. --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 5ce4eb7e15..77bfb416f7 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -328,28 +328,19 @@ class PreferencesForm { # Determine namespace checkboxes $namespaces = $wgContLang->getNamespaces(); - $r1 = ''; + $r1 = null; foreach ( $namespaces as $i => $name ) { - # Skip special or anything similar - if ( $i >= 0 ) { - $checked = ''; - if ( $this->mSearchNs[$i] ) { - $checked = ' checked="checked"'; - } - $name = str_replace( '_', ' ', $namespaces[$i] ); - if ( '' == $name ) { - $name = wfMsg( 'blanknamespace' ); - } + if ($i < 0) + continue; + $checked = $this->mSearchNs[$i] ? "checked='checked'" : ''; + $name = str_replace( '_', ' ', $namespaces[$i] ); + + if ( empty($name) ) + $name = wfMsg( 'blanknamespace' ); - if ( 0 != $i ) { - $r1 .= ' '; - } - $r1 .= "\n"; - } + $r1 .= "\n"; } - return $r1; } @@ -673,43 +664,53 @@ class PreferencesForm { # Editing # - $wgOut->addHTML( "
" . wfMsg( 'textboxsize' ) . " \n -
- - -
" . - $this->getToggles( array( - "editsection", - "editsectiononrightclick", - "editondblclick", - "editwidth", - "showtoolbar", - "previewonfirst", - "previewontop", - "watchdefault", - "minordefault", - "externaleditor", - "externaldiff" ) ) . - " -
"); + $wgOut->addHTML( '
' . wfMsg( 'textboxsize' ) . ' +
+ + +
" . + $this->getToggles( array( + 'editsection', + 'editsectiononrightclick', + 'editondblclick', + 'editwidth', + 'showtoolbar', + 'previewonfirst', + 'previewontop', + 'watchdefault', + 'minordefault', + 'externaleditor', + 'externaldiff' ) + ) . '
' + ); - $wgOut->addHTML( " -
".htmlspecialchars(wfMsg('prefs-rc'))." -
" . - $this->getToggles( array( - "hideminor", - ($wgRCShowWatchingUsers) ? 'shownumberswatching' : false, - "usenewrc", - "rcusemodstyle", - array( 'showupdated', wfMsg('updatedmarker') ) - ) ) . - "
-
"); + $wgOut->addHTML( '
' . htmlspecialchars(wfMsg('prefs-rc')) . ' + ' . + $this->addRow( + wfMsg ( 'stubthreshold' ), + "mStubs\" size='6' />" + ) . + $this->addRow( + wfMsg( 'recentchangescount' ), + "mRecent\" size='6' />" + ) . + '
' . + $this->getToggles( array( + 'hideminor', + $wgRCShowWatchingUsers ? 'shownumberswatching' : false, + 'usenewrc', + 'rcusemodstyle', + array( + 'showupdated', + wfMsg('updatedmarker') + ) ) + ) . '
' + ); - $wgOut->addHTML( "
" . wfMsg( 'searchresultshead' ) . "" . - $this->addRow( wfMsg( 'resultsperpage' ), "mSearch\" size='4' />" ) . - $this->addRow( wfMsg( 'contextlines' ), "mSearchLines\" size='4' />") . - $this->addRow( wfMsg( 'contextchars' ), "mSearchChars\" size='4' />") . + $wgOut->addHTML( '
' . wfMsg( 'searchresultshead' ) . '
' . + $this->addRow( wfMsg( 'resultsperpage' ), "mSearch\" size='4' />" ) . + $this->addRow( wfMsg( 'contextlines' ), "mSearchLines\" size='4' />" ) . + $this->addRow( wfMsg( 'contextchars' ), "mSearchChars\" size='4' />" ) . "
" . wfMsg( 'defaultns' ) . "$ps
" ); # Misc