summaryrefslogtreecommitdiff
path: root/plugins/storage.bitfile.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-12-21 09:44:37 +0000
committerChristian Fowler <spider@viovio.com>2006-12-21 09:44:37 +0000
commit9023d6d1c4ec5a6eb133976822d9aa8361b15d67 (patch)
treee2851c565eca2edb8bed53e57d2bcc1d10931c76 /plugins/storage.bitfile.php
parentf05c8791375cfc13b3a7908e5e742cad61bdd0bd (diff)
downloadliberty-9023d6d1c4ec5a6eb133976822d9aa8361b15d67.tar.gz
liberty-9023d6d1c4ec5a6eb133976822d9aa8361b15d67.tar.bz2
liberty-9023d6d1c4ec5a6eb133976822d9aa8361b15d67.zip
check for empty thumbnail_sizes in magickwand_resize
Diffstat (limited to 'plugins/storage.bitfile.php')
-rw-r--r--plugins/storage.bitfile.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/storage.bitfile.php b/plugins/storage.bitfile.php
index 25b56ce..6c9b419 100644
--- a/plugins/storage.bitfile.php
+++ b/plugins/storage.bitfile.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Revision: 1.17 $
+ * @version $Revision: 1.18 $
* @package liberty
* @subpackage plugins_storage
*/
@@ -32,6 +32,9 @@ function bit_files_verify( &$pStoreRow ) {
$pStoreRow['plugin_guid'] = PLUGIN_GUID_BIT_FILES;
$pStoreRow['foreign_id'] = NULL;
$pStoreRow['dest_base_name'] = substr( $pStoreRow['upload']['name'], 0, strrpos( $pStoreRow['upload']['name'], '.' ) );
+ if( function_exists( 'transliterate' ) ) {
+// $pStoreRow['dest_base_name'] = transliterate( $pStoreRow['dest_base_name'], array('han_transliterate', 'diacritical_remove'), 'utf-8', 'utf-8' );
+ }
$pStoreRow['source_file'] = $pStoreRow['upload']['tmp_name'];
return( TRUE );