[Rt-devel] PATCH: silence warnings Elements/Menu

Jim Meyer purp at acm.org
Wed Nov 16 18:37:16 EST 2005


Attached. I broke the long line into several shorter to make finding the
undefs easier; I left it as it makes things more readable with no affect
on functionality.

Cheers!

--j
-- 
Jim Meyer, Geek at Large                                    purp at acm.org
-------------- next part --------------
--- share/html/Elements/Menu	2005-08-06 16:55:38.000000000 -0700
+++ local/html/Elements/Menu	2005-11-16 15:01:05.000000000 -0800
@@ -83,9 +83,14 @@
 %            if $postsep;
 %
 %     $class->{li} = join ' ', @li;
 %     
-  <li<% $class->{li} ? qq[ class="$class->{li}"] : ''|n %>><% $count > 1 && !$postsep && qq[<span class="bullet">&#183; </span>]|n%><a href="<%$RT::WebPath%>/<%$toptabs->{$tab}->{'path'}%>"<% $class->{a} && qq[ class="$class->{a}"] |n%><% !$level && " accesskey='".$accesskey++."'" |n%>><% $toptabs->{$tab}->{'title'}%></a>
+  <li<% $class->{li} ? qq[ class="$class->{li}"] : ''|n %>>
+    <% $count > 1 && !$postsep && qq[<span class="bullet">&#183; </span>]|n%>
+    <a href="<%$RT::WebPath%>/<%$toptabs->{$tab}->{'path'} || '' %>"
+    <% $class->{a} && qq[ class="$class->{a}"] |n%>
+    <% !$level && " accesskey='".$accesskey++."'" |n%>>
+    <% $toptabs->{$tab}->{'title'} || ''%></a>
 %# Second-level items
 %     if ($toptabs->{$tab}->{'subtabs'}
 %         and keys %{$toptabs->{$tab}->{'subtabs'}})
 %     {


More information about the Rt-devel mailing list