summaryrefslogtreecommitdiff
path: root/plugins/storage.bitfile.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-02 07:55:24 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-02 07:55:24 +0000
commitf5f6b1402682b739a78246aaebae40fd00f15279 (patch)
treee007f0e057733101ec518e183836b85b38ea4e4e /plugins/storage.bitfile.php
parent3458ff427163d0cb83bb3355a4f823a723c794a1 (diff)
downloadliberty-f5f6b1402682b739a78246aaebae40fd00f15279.tar.gz
liberty-f5f6b1402682b739a78246aaebae40fd00f15279.tar.bz2
liberty-f5f6b1402682b739a78246aaebae40fd00f15279.zip
detikify sequence names
Diffstat (limited to 'plugins/storage.bitfile.php')
-rw-r--r--plugins/storage.bitfile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/storage.bitfile.php b/plugins/storage.bitfile.php
index 7a74770..009b7e7 100644
--- a/plugins/storage.bitfile.php
+++ b/plugins/storage.bitfile.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
* @package liberty
* @subpackage plugins_storage
*/
@@ -47,7 +47,7 @@ function bit_files_store( &$pStoreRow ) {
$sql = "UPDATE `".BIT_DB_PREFIX."liberty_files SET `storage_path`=?, `mime_type`=?, `size`=? WHERE `file_id` = ?";
$gBitSystem->mDb->query( $sql, array( $pStoreRow['dest_file_path'], $pStoreRow['type'], $pStoreRow['size'], $pStoreRow['foreign_id'] ) );
} else {
- $pStoreRow['file_id'] = $gBitSystem->mDb->GenID( 'tiki_files_file_id_seq' );
+ $pStoreRow['file_id'] = $gBitSystem->mDb->GenID( 'liberty_files_id_seq' );
$sql = "INSERT INTO `".BIT_DB_PREFIX."liberty_files` ( `storage_path`, `file_id`, `mime_type`, `size`, `user_id` ) VALUES ( ?, ?, ?, ?, ? )";
$userId = !empty( $pStoreRow['upload']['user_id'] ) ? $pStoreRow['upload']['user_id'] : $gBitUser->mUserId;
$gBitSystem->mDb->query($sql, array( $pStoreRow['upload']['dest_path'].$pStoreRow['upload']['name'], $pStoreRow['file_id'], $pStoreRow['upload']['type'], $pStoreRow['upload']['size'], $userId ) );