summaryrefslogtreecommitdiff
path: root/smartyplugins
diff options
context:
space:
mode:
authortekimaki <will@tekimaki.com>2010-07-20 00:02:17 -0400
committertekimaki <will@tekimaki.com>2010-07-20 00:02:17 -0400
commit3acbc989431a86e9a17d4b113ea7bf37a8f0ed18 (patch)
tree9ca201fd9ab6948e092170be78e5f74993bb872f /smartyplugins
parentf390a276faeb839017027399a14e58a279e27da2 (diff)
downloadthemes-3acbc989431a86e9a17d4b113ea7bf37a8f0ed18.tar.gz
themes-3acbc989431a86e9a17d4b113ea7bf37a8f0ed18.tar.bz2
themes-3acbc989431a86e9a17d4b113ea7bf37a8f0ed18.zip
fix paths to iconsets in new config location - this should be it for awhile (famous last words)
Diffstat (limited to 'smartyplugins')
-rw-r--r--smartyplugins/function.biticon.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/smartyplugins/function.biticon.php b/smartyplugins/function.biticon.php
index 64fa213..a8a3949 100644
--- a/smartyplugins/function.biticon.php
+++ b/smartyplugins/function.biticon.php
@@ -188,12 +188,12 @@ function smarty_function_biticon( $pParams, &$gBitSmarty, $pCheckSmall = FALSE )
// violators will be poked with soft cushions by the Cardinal himself!!!
$icon_style = !empty( $pParams['istyle'] ) ? $pParams['istyle'] : $gBitSystem->getConfig( 'site_icon_style', DEFAULT_ICON_STYLE );
- if( FALSE !== ( $matchFile = biticon_first_match( BIT_ROOT_PATH."config/styles/icons/$icon_style".$pParams['ipath'], $pParams['iname'] ))) {
- return biticon_output( $pParams, BIT_ROOT_URL."config/styles/icons/$icon_style".$pParams['ipath'].$matchFile );
+ if( FALSE !== ( $matchFile = biticon_first_match( CONFIG_PKG_PATH."iconsets/$icon_style".$pParams['ipath'], $pParams['iname'] ))) {
+ return biticon_output( $pParams, CONFIG_PKG_URL."iconsets/$icon_style".$pParams['ipath'].$matchFile );
}
- if( $icon_style != DEFAULT_ICON_STYLE && FALSE !== ( $matchFile = biticon_first_match( BIT_ROOT_PATH."config/styles/icons/".DEFAULT_ICON_STYLE.$pParams['ipath'], $pParams['iname'] ))) {
- return biticon_output( $pParams, BIT_ROOT_URL."config/styles/icons/".DEFAULT_ICON_STYLE.$pParams['ipath'].$matchFile );
+ if( $icon_style != DEFAULT_ICON_STYLE && FALSE !== ( $matchFile = biticon_first_match( CONFIG_PKG_PATH."iconsets/".DEFAULT_ICON_STYLE.$pParams['ipath'], $pParams['iname'] ))) {
+ return biticon_output( $pParams, CONFIG_PKG_URL."iconsets/".DEFAULT_ICON_STYLE.$pParams['ipath'].$matchFile );
}
// if that didn't work, we'll try liberty