Index: trunk/extensions/CodeReview/SpecialCode.php |
— | — | @@ -109,8 +109,11 @@ |
110 | 110 | $text = $arr[0]; |
111 | 111 | $bugNo = intval( $arr[1] ); |
112 | 112 | $url = $this->mRepo->getBugPath( $bugNo ); |
113 | | - |
114 | | - return $this->makeExternalLink( $url, $text ); |
| 113 | + if( $url ) { |
| 114 | + return $this->makeExternalLink( $url, $text ); |
| 115 | + } else { |
| 116 | + return $text; |
| 117 | + } |
115 | 118 | } |
116 | 119 | |
117 | 120 | function messageRevLink( $matches ) { |