[Rt-commit] r13370 - in rt/3.8/trunk: .

kyoki at bestpractical.com kyoki at bestpractical.com
Tue Jun 17 15:44:08 EDT 2008


Author: kyoki
Date: Tue Jun 17 15:44:07 2008
New Revision: 13370

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/share/html/Elements/PageLayout

Log:
 r23053 at nyx:  kyoki | 2008-06-16 18:27:21 -0400
 removed '?' when doing comparisons


Modified: rt/3.8/trunk/share/html/Elements/PageLayout
==============================================================================
--- rt/3.8/trunk/share/html/Elements/PageLayout	(original)
+++ rt/3.8/trunk/share/html/Elements/PageLayout	Tue Jun 17 15:44:07 2008
@@ -79,8 +79,8 @@
          my $current = $page_tabs->{current_toptab} || "";
          my $path    = $page_tabs->{$tab}->{'path'} || "";
          
-         $path    =~ s#/index.html$##gi;
-         $current =~ s#/index.html$##gi;
+         $path    =~ s#(/index\.html)?(\?)?$##gi;
+         $current =~ s#(/index\.html)?(\?)?$##gi;
          
          $sep = $toptabs->{$tab}->{'separator'} ? 1 : 0;
          $class->{a} = $path eq $current ? ' class="selected"' : undef;
@@ -91,7 +91,6 @@
          push @li, 'post-separator' if $postsep;
          push @li, 'last' if $tab eq $tabs[-1];
          $class->{li} = join ' ', @li;
-     
 </%perl>
     <li<% $class->{li} ? qq[ class="$class->{li}"] : ''|n %>><% $count > 1 && !$postsep && "&#183; "|n%><a href="<%RT->Config->Get('WebPath')%>/<%$page_tabs->{$tab}->{'path'}%>"<%$class->{a}|n%><% $class->{a} ? ' name="focus"' : ''|n %>><% $page_tabs->{$tab}->{'title'} %></a></li>
 %


More information about the Rt-commit mailing list