Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2834,9 +2834,14 @@ |
2835 | 2835 | putenv( 'TZ='.$oldtzs ); |
2836 | 2836 | } |
2837 | 2837 | |
| 2838 | + if( $user->getOption( 'fancysig' ) ) { |
| 2839 | + $sigText = $k; |
| 2840 | + } else { |
| 2841 | + $sigText = '[[' . $wgContLang->getNsText( NS_USER ) . ":$n|$k]]"; |
| 2842 | + } |
2838 | 2843 | $text = preg_replace( '/~~~~~/', $d, $text ); |
2839 | | - $text = preg_replace( '/~~~~/', '[[' . $wgContLang->getNsText( NS_USER ) . ":$n|$k]] $d", $text ); |
2840 | | - $text = preg_replace( '/~~~/', '[[' . $wgContLang->getNsText( NS_USER ) . ":$n|$k]]", $text ); |
| 2844 | + $text = preg_replace( '/~~~~/', "$sigText $d", $text ); |
| 2845 | + $text = preg_replace( '/~~~/', $sigText, $text ); |
2841 | 2846 | |
2842 | 2847 | # Context links: [[|name]] and [[name (context)|]] |
2843 | 2848 | # |
Index: trunk/phase3/includes/SpecialPreferences.php |
— | — | @@ -476,8 +476,10 @@ |
477 | 477 | } |
478 | 478 | } |
479 | 479 | |
| 480 | + $fancysig = $this->getToggle( 'fancysig' ); |
480 | 481 | $wgOut->addHTML(" |
481 | 482 | <div><label>$ynn: <input type='text' name=\"wpNick\" value=\"{$this->mNick}\" size='12' /></label></div> |
| 483 | + <div>$fancysig<br /></div> |
482 | 484 | <div><label>$yl: <select name=\"wpUserLanguage\">\n"); |
483 | 485 | |
484 | 486 | /** |
Index: trunk/phase3/languages/Language.php |
— | — | @@ -79,7 +79,8 @@ |
80 | 80 | 'enotifrevealaddr' => 0, |
81 | 81 | 'shownumberswatching' => 1, |
82 | 82 | 'rcusemodstyle' => 1, |
83 | | - 'showupdated' => 1 |
| 83 | + 'showupdated' => 1, |
| 84 | + 'fancysig' => 0, |
84 | 85 | ); |
85 | 86 | |
86 | 87 | /* private */ $wgQuickbarSettingsEn = array( |
— | — | @@ -155,6 +156,7 @@ |
156 | 157 | 'shownumberswatching', |
157 | 158 | 'rcusemodstyle', |
158 | 159 | 'showupdated', |
| 160 | + 'fancysig' |
159 | 161 | ); |
160 | 162 | |
161 | 163 | /* private */ $wgBookstoreListEn = array( |
— | — | @@ -276,6 +278,7 @@ |
277 | 279 | 'tog-shownumberswatching' => 'Show the number of watching users (in recent changes view, watchlist and article page footers)', |
278 | 280 | 'tog-rcusemodstyle' => 'Show recent changes in UseMod style: only the most recent change of any page is listed.', |
279 | 281 | 'tog-showupdated' => 'Show update marker ', |
| 282 | +'tog-fancysig' => 'Raw signatures (without automatic link)', |
280 | 283 | |
281 | 284 | # dates |
282 | 285 | 'sunday' => 'Sunday', |