Changeset 137 for veekun/trunk/lib/Vee/Utils.pm
- Timestamp:
- 05/08/07 22:14:07 (3 years ago)
- Files:
-
- 1 modified
-
veekun/trunk/lib/Vee/Utils.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/lib/Vee/Utils.pm
r1 r137 45 45 46 46 # get the postrank for a postcount 47 # IN: user post count, OUT: post rank based on user post count 48 47 49 sub postrank { 48 my ($postct , $postranks) = @_;49 for my $rank (sort { $b <=> $a } keys % $postranks) {50 return $postranks->{$rank} if $rank < $postct;50 my ($postct) = @_; 51 for my $rank (sort { $b <=> $a } keys %{ Vee->config->{site}->{post_ranks} }) { 52 return Vee->config->{site}->{post_ranks}->{$rank} if $rank < $postct; 51 53 } 52 54 return "ERRORZ0RZ";
