[vhffs-dev] [994] Oops

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 994
Author:   gradator
Date:     2007-10-16 14:01:46 +0000 (Tue, 16 Oct 2007)

Log Message:
-----------
Oops

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Stats.pm


Modified: trunk/vhffs-api/src/Vhffs/Stats.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Stats.pm	2007-10-16 13:58:00 UTC (rev 993)
+++ trunk/vhffs-api/src/Vhffs/Stats.pm	2007-10-16 14:01:46 UTC (rev 994)
@@ -353,23 +353,23 @@
 sub get_git_in_moderation
 {
     my $self = shift;
-    unless(defined $self->{svn}{awaiting_validation}) {
+    unless(defined $self->{git}{awaiting_validation}) {
         my $sql = 'SELECT COUNT(*) FROM vhffs_git w INNER JOIN vhffs_object o ON o.object_id=w.object_id WHERE o.state = ?';
-        ($self->{svn}{awaiting_validation}) = @{$self->{db}->selectrow_arrayref( $sql, undef, Vhffs::Constants::WAITING_FOR_VALIDATION )};
+        ($self->{git}{awaiting_validation}) = @{$self->{db}->selectrow_arrayref( $sql, undef, Vhffs::Constants::WAITING_FOR_VALIDATION )};
 
     }
-    return $self->{svn}{awaiting_validation};
+    return $self->{git}{awaiting_validation};
 }
 
 
 sub get_git_activated
 {
     my $self = shift;
-    unless(defined $self->{svn}{activated}) {
+    unless(defined $self->{git{activated}) {
         my $sql = 'SELECT COUNT(*) FROM vhffs_git w INNER JOIN vhffs_object o ON o.object_id=w.object_id WHERE o.state='.Vhffs::Constants::ACTIVATED;
-        ($self->{'svn'}{activated}) = @{$self->{db}->selectrow_arrayref( $sql )};
+        ($self->{'git'}{activated}) = @{$self->{db}->selectrow_arrayref( $sql )};
     }
-    return $self->{svn}{activated};
+    return $self->{git}{activated};
 }
 
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/