summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2005-08-07 22:18:52 +0000
committerLester Caine <lester@lsces.co.uk>2005-08-07 22:18:52 +0000
commit1e35cbb4387640fe0ec11c1e404cb62ee6c36c2a (patch)
tree1f7dd6ef41a29d74b82a76e610580c30c1786add
parentdc091fd8f61c4d20c12bffdd40cd06e57b5641e0 (diff)
downloadquota-1e35cbb4387640fe0ec11c1e404cb62ee6c36c2a.tar.gz
quota-1e35cbb4387640fe0ec11c1e404cb62ee6c36c2a.tar.bz2
quota-1e35cbb4387640fe0ec11c1e404cb62ee6c36c2a.zip
Update BitDb functions to be accessed via mDb in BitBase
-rw-r--r--LibertyQuota.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/LibertyQuota.php b/LibertyQuota.php
index 3c12a7d..5af079e 100644
--- a/LibertyQuota.php
+++ b/LibertyQuota.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_quota/LibertyQuota.php,v 1.3 2005/08/07 17:44:03 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_quota/LibertyQuota.php,v 1.4 2005/08/07 22:18:52 lsces Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: LibertyQuota.php,v 1.3 2005/08/07 17:44:03 squareing Exp $
+ * $Id: LibertyQuota.php,v 1.4 2005/08/07 22:18:52 lsces Exp $
* @package quota
*/
@@ -28,7 +28,7 @@ require_once( LIBERTY_PKG_PATH.'LibertyAttachable.php' );
*
* @author spider <spider@steelsun.com>
*
- * @version $Revision: 1.3 $ $Date: 2005/08/07 17:44:03 $ $Author: squareing $
+ * @version $Revision: 1.4 $ $Date: 2005/08/07 22:18:52 $ $Author: lsces $
*/
class LibertyQuota extends LibertyBase {
/**
@@ -155,7 +155,7 @@ class LibertyQuota extends LibertyBase {
**/
function assignQuotaToGroup( $pQuotaId, $pGroupId ) {
if( is_numeric( $pQuotaId ) && is_numeric( $pGroupId ) ) {
- $hasRow = $this->GetOne( 'SELECT `quota_id` FROM `'.BIT_DB_PREFIX.'tiki_quotas_group_map` WHERE `group_id`=?',array( $pGroupId ) );
+ $hasRow = $this->mDb->getOne( 'SELECT `quota_id` FROM `'.BIT_DB_PREFIX.'tiki_quotas_group_map` WHERE `group_id`=?',array( $pGroupId ) );
if( $hasRow ) {
$query = 'UPDATE `'.BIT_DB_PREFIX.'tiki_quotas_group_map` SET `quota_id`=? WHERE `group_id`=?';
$rs = $this->mDb->query( $query, array( $pQuotaId, $pGroupId ) );