Skip to content

Commit

Permalink
fixed: use static icon with guess link type not working
Browse files Browse the repository at this point in the history
  • Loading branch information
pollen8 committed Mar 4, 2014
1 parent 758fd35 commit 3a70d82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/com_fabrik/helpers/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,8 @@ public static function a($href, $lbl = '', $opts = array())
if ($smart_link || $target == 'mediabox')
{
$smarts = self::getSmartLinkType($href);

// Not sure that the type option is now needed.
$opts['rel'] = 'lightbox[' . $smarts['type'] . ' ' . $smarts['width'] . ' ' . $smarts['height'] . ']';
}

Expand Down
3 changes: 2 additions & 1 deletion components/com_fabrik/models/element.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,8 @@ protected function replaceWithIcons($data, $view = 'list', $tmpl = null)
if (class_exists('DOMDocument') && $as->length)
{
$img = $html->createElement('img');
$img->setAttribute('src', FabrikHelperHTML::image($cleanData . '.' . $ex, $view, $tmpl, array(), true));
$src = FabrikHelperHTML::image($cleanData . '.' . $ex, $view, $tmpl, array(), true, array('forceImage' => true));
$img->setAttribute('src', $src);
$as->item(0)->nodeValue = '';
$as->item(0)->appendChild($img);

Expand Down

0 comments on commit 3a70d82

Please sign in to comment.