diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-09-11 18:59:48 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-09-11 18:59:48 +0000 |
| commit | d46d1b0b3e3316dd82d3465bf95f69369c91226f (patch) | |
| tree | 072a5371171f48d3fc370b7c0eee66211e72f902 | |
| parent | c553f10b2da0b56e3e1d0c055ea7e45731dfe305 (diff) | |
| download | liberty-d46d1b0b3e3316dd82d3465bf95f69369c91226f.tar.gz liberty-d46d1b0b3e3316dd82d3465bf95f69369c91226f.tar.bz2 liberty-d46d1b0b3e3316dd82d3465bf95f69369c91226f.zip | |
make sure icon checks are always lower case
| -rwxr-xr-x | LibertySystem.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 <spider@steelsun.com> */ @@ -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 ); |
