[vhffs-dev] [474] get_db_object doesn't exists for Vhffs::Object |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 474
Author: beuss
Date: 2007-02-17 12:36:23 +0000 (Sat, 17 Feb 2007)
Log Message:
-----------
get_db_object doesn't exists for Vhffs::Object
Modified Paths:
--------------
branches/vhffs_4.1/vhffs-api/src/Vhffs/Panel/User.pm
Modified: branches/vhffs_4.1/vhffs-api/src/Vhffs/Panel/User.pm
===================================================================
--- branches/vhffs_4.1/vhffs-api/src/Vhffs/Panel/User.pm 2007-02-17 12:32:01 UTC (rev 473)
+++ branches/vhffs_4.1/vhffs-api/src/Vhffs/Panel/User.pm 2007-02-17 12:36:23 UTC (rev 474)
@@ -95,7 +95,7 @@
return -1 if ( ( ! defined $user ) || ( ! defined $lang ) );
my $sql = 'UPDATE vhffs_users SET language = ? WHERE uid = ?';
- my $sth = $user->get_db_object()->prepare($sql);
+ my $sth = $user->{db}->prepare($sql);
$sth->execute($lang, $user->get_uid) or return -1;
}
@@ -108,7 +108,7 @@
return -1 if ( ( ! defined $user ) || ( ! defined $theme ) );
my $sql = 'UPDATE vhffs_users SET theme = ? WHERE uid = ?';
- my $dbh = $user->get_db_object();
+ my $dbh = $user->{db};
my $sth = $dbh->prepare($sql);
$sth->execute($theme, $user->get_uid) or return -1;
}