Show
Ignore:
Timestamp:
05/08/07 22:14:07 (3 years ago)
Author:
latiass
Message:

Fixed all the placeholders I had left in the userlist/userinfo. Sorry about that. Also fixed another memory leak in Users.pm. There's still one in the forums, but I can't find it yet. Everything should work; test further before sending to prod.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee/Utils.pm

    r1 r137  
    4545 
    4646# get the postrank for a postcount 
     47# IN: user post count, OUT: post rank based on user post count 
     48 
    4749sub 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; 
    5153    } 
    5254    return "ERRORZ0RZ";