summaryrefslogtreecommitdiff
path: root/smarty_bit
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-10-08 18:04:10 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-10-08 18:04:10 +0000
commite79d9c358ba6964b47fef5294cef33a74cc35e90 (patch)
treeab76217e2c9eff48ac9090c44938dcc7f4cd44f7 /smarty_bit
parent3363fc902429da815a4e0bcfe5ca6349c00731be (diff)
downloadkernel-e79d9c358ba6964b47fef5294cef33a74cc35e90.tar.gz
kernel-e79d9c358ba6964b47fef5294cef33a74cc35e90.tar.bz2
kernel-e79d9c358ba6964b47fef5294cef33a74cc35e90.zip
make biticon behave nicely with install package
Diffstat (limited to 'smarty_bit')
-rw-r--r--smarty_bit/function.biticon.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/smarty_bit/function.biticon.php b/smarty_bit/function.biticon.php
index 030bf38..07d7e0d 100644
--- a/smarty_bit/function.biticon.php
+++ b/smarty_bit/function.biticon.php
@@ -214,7 +214,7 @@ function smarty_function_biticon( $pParams, &$gBitSmarty, $pCheckSmall = FALSE )
}
//Well, then lets look in the package location
- if( FALSE !== ( $matchFile = biticon_first_match( $gBitSystem->mPackages[$pParams['ipackage']]['path']."icons".$pParams['ipath'], $pParams['iname'] ))) {
+ if( FALSE !== ( $matchFile = biticon_first_match( constant( strtoupper( $pParams['ipackage'] ).'_PKG_PATH' )."icons".$pParams['ipath'], $pParams['iname'] ))) {
return biticon_output( $pParams, constant( strtoupper( $pParams['ipackage'] ).'_PKG_URL' )."icons".$pParams['ipath'].$matchFile );
}