putenv( 'TZ='.$oldtzs );
}
+ if( $user->getOption( 'fancysig' ) ) {
+ $sigText = $k;
+ } else {
+ $sigText = '[[' . $wgContLang->getNsText( NS_USER ) . ":$n|$k]]";
+ }
$text = preg_replace( '/~~~~~/', $d, $text );
- $text = preg_replace( '/~~~~/', '[[' . $wgContLang->getNsText( NS_USER ) . ":$n|$k]] $d", $text );
- $text = preg_replace( '/~~~/', '[[' . $wgContLang->getNsText( NS_USER ) . ":$n|$k]]", $text );
+ $text = preg_replace( '/~~~~/', "$sigText $d", $text );
+ $text = preg_replace( '/~~~/', $sigText, $text );
# Context links: [[|name]] and [[name (context)|]]
#
}
}
+ $fancysig = $this->getToggle( 'fancysig' );
$wgOut->addHTML("
<div><label>$ynn: <input type='text' name=\"wpNick\" value=\"{$this->mNick}\" size='12' /></label></div>
+ <div>$fancysig<br /></div>
<div><label>$yl: <select name=\"wpUserLanguage\">\n");
/**
'enotifrevealaddr' => 0,
'shownumberswatching' => 1,
'rcusemodstyle' => 1,
- 'showupdated' => 1
+ 'showupdated' => 1,
+ 'fancysig' => 0,
);
/* private */ $wgQuickbarSettingsEn = array(
'shownumberswatching',
'rcusemodstyle',
'showupdated',
+ 'fancysig'
);
/* private */ $wgBookstoreListEn = array(
'tog-shownumberswatching' => 'Show the number of watching users (in recent changes view, watchlist and article page footers)',
'tog-rcusemodstyle' => 'Show recent changes in UseMod style: only the most recent change of any page is listed.',
'tog-showupdated' => 'Show update marker ',
+'tog-fancysig' => 'Raw signatures (without automatic link)',
# dates
'sunday' => 'Sunday',