[Codestriker-commits] CVS update: codestriker/lib/Codestriker/Template/Plugin AutomagicLinks.pm
Brought to you by:
sits
From: <si...@us...> - 2006-02-09 23:22:46
|
User: sits Date: 06/02/09 15:19:40 Modified: lib/Codestriker/Template/Plugin AutomagicLinks.pm Log: Also protect in case bugtracker is not defiined Index: AutomagicLinks.pm =================================================================== RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Template/Plugin/AutomagicLinks.pm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- AutomagicLinks.pm 6 Jan 2004 22:56:10 -0000 1.2 +++ AutomagicLinks.pm 9 Feb 2006 23:19:38 -0000 1.3 @@ -27,7 +27,7 @@ # If there is a link to a bug tracking system, automagically modify all # text of the form "[Bb]ug \d+" to a hyperlink for that bug record. - if ($Codestriker::bugtracker ne "") { + if (defined $Codestriker::bugtracker && $Codestriker::bugtracker ne "") { $result =~ s/(\b)([Bb][Uu][Gg]\s*(\d+))(\b)/$1<A HREF="${Codestriker::bugtracker}$3">$1$2$4<\/A>/mg; } |