[Rt-commit] r3576 - in rt/branches/3.4-RELEASE: . html/Elements

robert at bestpractical.com robert at bestpractical.com
Tue Aug 2 00:23:36 EDT 2005


Author: robert
Date: Tue Aug  2 00:23:36 2005
New Revision: 3576

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/html/Elements/Menu
Log:
 r3582 at woof:  rspier | 2005-08-01 21:20:12 -0700
 allow arbitrary https?: urls in the menus


Modified: rt/branches/3.4-RELEASE/html/Elements/Menu
==============================================================================
--- rt/branches/3.4-RELEASE/html/Elements/Menu	(original)
+++ rt/branches/3.4-RELEASE/html/Elements/Menu	Tue Aug  2 00:23:36 2005
@@ -78,7 +78,8 @@
 % } else {
 % $sep=0;
 % }
-<li class="<%$class%>-<%$level%>-<%$style%>"><A HREF="<%$RT::WebPath%>/<%$toptabs->{$tab}->{'path'}%>" class="<%$class%>-<%$level%>" 
+% my $url = $toptabs->{$tab}->{'path'} =~ /^https?:/i ? $toptabs->{$tab}->{'path'} : $RT::WebPath . "/" . $toptabs->{$tab}->{'path'};
+<li class="<%$class%>-<%$level%>-<%$style%>"><A HREF="<% $url %>" class="<%$class%>-<%$level%>" 
 <%($class eq 'currenttopnav') ? "name='focus'" : ""|n %> 
 <% !$level && "accesskey='".$accesskey++."'" |n%>><% $toptabs->{$tab}->{'title'}%></A>
 %# Second-level items


More information about the Rt-commit mailing list