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;
       }
       
  
  
  


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to