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:
@@ -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='*'/>";
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user