[vhffs-dev] [538] Ooops...

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


Revision: 538
Author:   gradator
Date:     2007-04-01 12:14:46 +0000 (Sun, 01 Apr 2007)

Log Message:
-----------
Ooops... don't kill me...

Modified Paths:
--------------
    branches/vhffs_4.1/vhffs-api/src/Vhffs/Constants.pm
    branches/vhffs_4.1/vhffs-api/src/Vhffs/Misc/Mailings.pm


Modified: branches/vhffs_4.1/vhffs-api/src/Vhffs/Constants.pm
===================================================================
--- branches/vhffs_4.1/vhffs-api/src/Vhffs/Constants.pm	2007-03-31 23:30:55 UTC (rev 537)
+++ branches/vhffs_4.1/vhffs-api/src/Vhffs/Constants.pm	2007-04-01 12:14:46 UTC (rev 538)
@@ -7,7 +7,7 @@
 
 use constant
 {
-    VHFFS_VERSION => '4.1-alpha (Revision: 522)',
+    VHFFS_VERSION => '4.1-alpha (Revision: 537)',
     VHFFS_RELEASE_NAME => "hippocampus",
     
     WAITING_FOR_VALIDATION => 1,

Modified: branches/vhffs_4.1/vhffs-api/src/Vhffs/Misc/Mailings.pm
===================================================================
--- branches/vhffs_4.1/vhffs-api/src/Vhffs/Misc/Mailings.pm	2007-03-31 23:30:55 UTC (rev 537)
+++ branches/vhffs_4.1/vhffs-api/src/Vhffs/Misc/Mailings.pm	2007-04-01 12:14:46 UTC (rev 538)
@@ -48,12 +48,8 @@
 	
 	return -1 if ( ! defined $vhffs );
 
-	my $db = $vhffs->get_db_object;
-
-	my $id = 0;
-
 	$query = 'INSERT INTO vhffs_mailings (subject,message,date,state) VALUES( ? , ? , NOW() , ? )';
-	$request = $db->{'DB_WRITE'}->prepare( $query );
+	$request = $vhffs->{'db'}->prepare( $query );
 	$request->execute($subject, $message, Vhffs::Constants::WAITING_FOR_CREATION) or return -2;
 
 	return 1;


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