Index: trunk/extensions/CodeReview/SpecialCode.php |
— | — | @@ -73,14 +73,15 @@ |
74 | 74 | function formatMessage( $value ){ |
75 | 75 | $value = nl2br( htmlspecialchars( $value ) ); |
76 | 76 | $value = preg_replace_callback( '/\br(\d+)\b/', array( $this, 'messageRevLink' ), $value ); |
77 | | - $value = preg_replace_callback( '/\bbug (\d+)\b/', array( $this, 'messageBugLink' ), $value ); |
| 77 | + $value = preg_replace_callback( '/\bbug (\d+)\b/i', array( $this, 'messageBugLink' ), $value ); |
78 | 78 | return "<code>$value</code>"; |
79 | 79 | } |
80 | 80 | |
81 | 81 | function messageBugLink( $arr ){ |
| 82 | + $text = $arr[0]; |
82 | 83 | $bugNo = intval( $arr[1] ); |
83 | 84 | $url = $this->mRepo->getBugPath( $bugNo ); |
84 | | - return $this->mSkin->makeExternalLink( $url, "bug $bugNo" ); |
| 85 | + return $this->mSkin->makeExternalLink( $url, $text ); |
85 | 86 | } |
86 | 87 | |
87 | 88 | function messageRevLink( $matches ) { |