From d46d1b0b3e3316dd82d3465bf95f69369c91226f Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Mon, 11 Sep 2006 18:59:48 +0000 Subject: make sure icon checks are always lower case --- LibertySystem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LibertySystem.php') diff --git a/LibertySystem.php b/LibertySystem.php index 2e87d73..d07775d 100755 --- a/LibertySystem.php +++ b/LibertySystem.php @@ -3,7 +3,7 @@ * System class for handling the liberty package * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.44 2006/09/08 19:07:33 squareing Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.45 2006/09/11 18:59:48 squareing Exp $ * @author spider */ @@ -424,7 +424,7 @@ class LibertySystem extends LibertyBase { global $gBitSmarty; require_once $gBitSmarty->_get_plugin_filepath( 'function','biticon' ); - $ext = $parts[1]; + $ext = strtolower( $parts[1] ); $biticon = array( 'ipackage' => 'liberty', 'ipath' => 'mime/', @@ -434,7 +434,7 @@ class LibertySystem extends LibertyBase { ); if( !$ret = smarty_function_biticon( $biticon,$gBitSmarty ) ) { - $biticon['iname'] = $pExt; + $biticon['iname'] = strtolower( $pExt ); if( !$ret = smarty_function_biticon( $biticon,$gBitSmarty ) ) { $biticon['iname'] = 'generic'; $ret = smarty_function_biticon( $biticon,$gBitSmarty ); -- cgit v1.3