summaryrefslogtreecommitdiff
path: root/thumbnailer.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2006-01-31 20:17:25 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2006-01-31 20:17:25 +0000
commit90b3c513ab876a9e5cd788da1459221a9ffe127b (patch)
tree5dca6529e14d4a04f8ff8d1551b3fe7324e5e9e4 /thumbnailer.php
parent148b14dfc0e780c028e3fe0d45a1c1e01bd45fe9 (diff)
downloadfisheye-90b3c513ab876a9e5cd788da1459221a9ffe127b.tar.gz
fisheye-90b3c513ab876a9e5cd788da1459221a9ffe127b.tar.bz2
fisheye-90b3c513ab876a9e5cd788da1459221a9ffe127b.zip
massive table de-tikification. changed all tiki_ table prefixes with teh package_ name. have changed everything except liberty except kernel
Diffstat (limited to 'thumbnailer.php')
-rwxr-xr-xthumbnailer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/thumbnailer.php b/thumbnailer.php
index 70225ef..de4e816 100755
--- a/thumbnailer.php
+++ b/thumbnailer.php
@@ -9,7 +9,7 @@
* suggested crontab entry runs the thumbnailer every minute:
* * * * * * apache php -q /path/to/bitweaver/fisheye/thumbnailer.php 20 >> /var/log/httpd/thumbnail_log
*
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/thumbnailer.php,v 1.7 2005/10/29 17:52:39 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/thumbnailer.php,v 1.8 2006/01/31 20:17:25 bitweaver Exp $
* @package fisheye
* @subpackage functions
*/
@@ -46,7 +46,7 @@
$gBitSystem->mDb->StartTrans();
$sql = "SELECT tq.content_id AS hash_key, tq.*
- FROM `".BIT_DB_PREFIX."tiki_thumbnail_queue` tq
+ FROM `".BIT_DB_PREFIX."liberty_thumbnail_queue` tq
WHERE tq.begin_date IS NULL
ORDER BY tq.queue_date";
$rs = $gBitSystem->mDb->query( $sql, NULL, $thumbCount );
@@ -54,7 +54,7 @@
$processContent = array();
while( !$rs->EOF ) {
$processContent[$rs->fields['content_id']] = $rs->fields;
- $sql2 = "UPDATE `".BIT_DB_PREFIX."tiki_thumbnail_queue` SET `begin_date`=? WHERE `content_id`=?";
+ $sql2 = "UPDATE `".BIT_DB_PREFIX."liberty_thumbnail_queue` SET `begin_date`=? WHERE `content_id`=?";
$rs2 = $gBitSystem->mDb->query( $sql2, array( date( 'U' ), $rs->fields['content_id'] ) );
$rs->MoveNext();
}
@@ -71,7 +71,7 @@
}
if( $image->renderThumbnails() ) {
$log[$contentId]['message'] = 'SUCCESS: Thumbnails created';
- $sql3 = "UPDATE `".BIT_DB_PREFIX."tiki_thumbnail_queue` SET `begin_date`=?, `end_date`=? WHERE `content_id`=?";
+ $sql3 = "UPDATE `".BIT_DB_PREFIX."liberty_thumbnail_queue` SET `begin_date`=?, `end_date`=? WHERE `content_id`=?";
$rs3 = $gBitSystem->mDb->query( $sql3, array( $begin, $gBitSystem->getUTCTime(), $contentId ) );
} else {
$log[$contentId]['message'] = ' ERROR: '.$image->mErrors['thumbnail'];