1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Fixes #466 Download Category Icons path.

This commit is contained in:
Cameron
2013-12-30 03:56:27 -08:00
parent d34623a043
commit 470b043739
4 changed files with 30 additions and 7 deletions

View File

@@ -884,9 +884,11 @@ class download_shortcodes extends e_shortcode
function _sc_cat_icons($source, $count, $alt)
{
if (!$source) return " ";
list($ret[TRUE],$ret[FALSE]) = explode(chr(1), $source.chr(1));
if (!$ret[FALSE]) $ret[FALSE] = $ret[TRUE];
return "<img src='".e_IMAGE."icons/{$ret[($count!=0)]}' alt='*'/>";
// list($ret[TRUE],$ret[FALSE]) = explode(chr(1), $source.chr(1)); //XXX ???
// if (!$ret[FALSE]) $ret[FALSE] = $ret[TRUE]; //XXX ???
return e107::getParser()->toIcon($source, e_IMAGE."icons/");
//return "<img src='".e_IMAGE."icons/{$ret[($count!=0)]}' alt='*'/>";
}