[Jifty-commit] r1119 - in jifty/trunk: lib/Jifty/Web
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu May 25 10:11:33 EDT 2006
Author: jesse
Date: Thu May 25 10:11:32 2006
New Revision: 1119
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Web/Menu.pm
Log:
r9806 at jesse-vincents-computer-2: jesse | 2006-05-25 10:09:59 -0400
* If we don't have a URL for this menu item, don't try to highlight it as current
Modified: jifty/trunk/lib/Jifty/Web/Menu.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Menu.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Menu.pm Thu May 25 10:11:32 2006
@@ -101,7 +101,7 @@
@_
});
# Activate it
- my $url = $self->{children}{$key}->url;
+ if (my $url = $self->{children}{$key}->url) {
# XXX TODO cleanup for mod_perl
my $base_path = Jifty->web->request->path;
chomp($base_path);
@@ -112,7 +112,7 @@
if ($url eq $base_path) {
$self->{children}{$key}->active(1);
}
-
+ }
}
More information about the Jifty-commit
mailing list