Index: trunk/phase3/includes/Parser.php |
— | — | @@ -3211,15 +3211,15 @@ |
3212 | 3212 | $nickname = trim( $user->getOption( 'nickname' ) ); |
3213 | 3213 | $nickname = ( $nickname == '' ? $username : $nickname ); |
3214 | 3214 | |
3215 | | - if( $user->getOption( 'fancysig' ) ) { |
| 3215 | + if( $user->getOption( 'fancysig' ) !== false ) { |
3216 | 3216 | # Sig. might contain markup; validate this |
3217 | | - if( $this->validateSig( $nickname ) ) { |
| 3217 | + if( $this->validateSig( $nickname ) !== false ) { |
3218 | 3218 | # Validated; clean up (if needed) and return it |
3219 | | - return( $this->cleanSig( $nick ) ); |
| 3219 | + return( $this->cleanSig( $nickname ) ); |
3220 | 3220 | } else { |
3221 | 3221 | # Failed to validate; fall back to the default |
3222 | 3222 | $nickname = $username; |
3223 | | - wfDebug( "Parser::getUserSig: $name has bad XML tags in signature.\n" ); |
| 3223 | + wfDebug( "Parser::getUserSig: $username has bad XML tags in signature.\n" ); |
3224 | 3224 | } |
3225 | 3225 | } |
3226 | 3226 | |