[Jifty-commit] jifty branch, master, updated. d56154618d533cafed1950e767fd43873edff895
Jifty commits
jifty-commit at lists.jifty.org
Fri Dec 11 22:15:26 EST 2009
The branch, master has been updated
via d56154618d533cafed1950e767fd43873edff895 (commit)
from 9f43c30af949b4e0fb261b7300de8e6d7ec028b5 (commit)
Summary of changes:
lib/Jifty/Web/Menu.pm | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit d56154618d533cafed1950e767fd43873edff895
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Dec 11 22:15:24 2009 -0500
$child->sort_order( number ) not $child->sort_order( sort_order => number )
diff --git a/lib/Jifty/Web/Menu.pm b/lib/Jifty/Web/Menu.pm
index 89545b5..4db9dbd 100644
--- a/lib/Jifty/Web/Menu.pm
+++ b/lib/Jifty/Web/Menu.pm
@@ -182,9 +182,8 @@ sub child {
}
$self->{children}{$key} = $child;
- $child->sort_order( sort_order =>
- ( $args{sort_order} ||
- scalar values %{ $self->{children} } ) ) unless ($child->sort_order());
+ $child->sort_order( $args{sort_order} || (scalar values %{ $self->{children} }) )
+ unless ($child->sort_order());
# URL is relative to parents, and cached, so set it up now
$child->url( $child->{url} );
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list