r40891 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40890‎ | r40891 | r40892 >
Date:00:26, 16 September 2008
Author:brion
Status:old
Tags:
Comment:
don't make bogus bugzilla links when repo doesn't have bugzilla url defined
Modified paths:
  • /trunk/extensions/CodeReview/SpecialCode.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/SpecialCode.php
@@ -109,8 +109,11 @@
110110 $text = $arr[0];
111111 $bugNo = intval( $arr[1] );
112112 $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+ }
115118 }
116119
117120 function messageRevLink( $matches ) {

Status & tagging log