X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSpecialPreferences.php;h=ebbb6da7042ae44fa83337313c13324f73581d21;hb=027030d18104525bd9c3e7b6fb68251e9ead6820;hp=838e43e57d69b52d84c6799511c2775b67b78a16;hpb=4bc595fa1cb7096be777f79ecf1504b311061517;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php
index 838e43e57d..ebbb6da704 100644
--- a/includes/SpecialPreferences.php
+++ b/includes/SpecialPreferences.php
@@ -435,9 +435,9 @@ class PreferencesForm {
$wgOut->setRobotpolicy( 'noindex,nofollow' );
if ( $this->mSuccess || 'success' == $status ) {
- $wgOut->addWikitext( '
'. wfMsg( 'savedprefs' ) . '
' );
+ $wgOut->addWikitext( ''. wfMsg( 'savedprefs' ) . '
' );
} else if ( 'error' == $status ) {
- $wgOut->addWikitext( '' . $message . '
' );
+ $wgOut->addWikitext( '' . $message . '
' );
} else if ( '' != $status ) {
$wgOut->addWikitext( $message . "\n----" );
}
@@ -463,6 +463,7 @@ class PreferencesForm {
#
$this->mUserEmail = htmlspecialchars( $this->mUserEmail );
$this->mRealName = htmlspecialchars( $this->mRealName );
+ $rawNick = $this->mNick;
$this->mNick = htmlspecialchars( $this->mNick );
if ( !$this->mEmailFlag ) { $emfc = 'checked="checked"'; }
else { $emfc = ''; }
@@ -539,11 +540,23 @@ class PreferencesForm {
);
}
+ global $wgParser;
+ if( !empty( $this->mToggles['fancysig'] ) &&
+ false === $wgParser->validateSig( $rawNick ) ) {
+ $invalidSig = $this->addRow(
+ ' ',
+ '' . wfMsgHtml( 'badsig' ) . ''
+ );
+ } else {
+ $invalidSig = '';
+ }
+
$wgOut->addHTML(
$this->addRow(
'',
"mNick}\" size='25' />"
) .
+ $invalidSig .
# FIXME: The part should be where the is, getToggle() needs
# to be changed to out return its output in two parts. -ævar
$this->addRow(
@@ -745,10 +758,16 @@ class PreferencesForm {
if ($dateopts) {
$wgOut->addHTML( "\n" );