summaryrefslogtreecommitdiff
path: root/plugins/storage.bitfile.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2005-06-20 07:47:42 +0000
committerChristian Fowler <spider@viovio.com>2005-06-20 07:47:42 +0000
commit88c9319c8c17c204bc1a4691190af259f3c14b5d (patch)
treedf064519e263b87570bcf913e999fb83030f20d9 /plugins/storage.bitfile.php
parente2590e0cdd3323eb7e1857c4a71ec36e3ac70181 (diff)
downloadliberty-88c9319c8c17c204bc1a4691190af259f3c14b5d.tar.gz
liberty-88c9319c8c17c204bc1a4691190af259f3c14b5d.tar.bz2
liberty-88c9319c8c17c204bc1a4691190af259f3c14b5d.zip
fix GenID bit_files_file_id_seq - revert hyperactive bitweaver convertor to tiki_files_file_id_seq
Diffstat (limited to 'plugins/storage.bitfile.php')
-rw-r--r--plugins/storage.bitfile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/storage.bitfile.php b/plugins/storage.bitfile.php
index 97b9a19..fe9a0ec 100644
--- a/plugins/storage.bitfile.php
+++ b/plugins/storage.bitfile.php
@@ -38,7 +38,7 @@ function bit_files_store( &$pStoreRow ) {
$sql = "UPDATE `".BIT_DB_PREFIX."tiki_files SET `storage_path`=?, `mime_type`=?, `size`=? WHERE `file_id` = ?";
$gBitSystem->query( $sql, array( $pStoreRow['dest_file_path'], $pStoreRow['type'], $pStoreRow['size'], $pStoreRow['foreign_id'] ) );
} else {
- $pStoreRow['file_id'] = $gBitSystem->GenID( 'bit_files_file_id_seq' );
+ $pStoreRow['file_id'] = $gBitSystem->GenID( 'tiki_files_file_id_seq' );
$sql = "INSERT INTO `".BIT_DB_PREFIX."tiki_files` ( `storage_path`, `file_id`, `mime_type`, `size`, `user_id` ) VALUES ( ?, ?, ?, ?, ? )";
$userId = !empty( $pStoreRow['upload']['user_id'] ) ? $pStoreRow['upload']['user_id'] : $gBitUser->mUserId;
$gBitSystem->query($sql, array( $pStoreRow['upload']['dest_path'].$pStoreRow['upload']['name'], $pStoreRow['file_id'], $pStoreRow['upload']['type'], $pStoreRow['upload']['size'], $userId ) );