1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Fixes #3450 – SITELINKS_ALT parent button fix

Parent links in sitelinks_alt::sitelinks_alt_shortcode() now have their
button image URI parsed by e_parse::replaceConstants(), bringing it into
consistency with the children, which are already parsed the same way.

There is no corresponding test for this in e107-test because hard-coded
dependencies in sitelinks_alt::sitelinks_alt_shortcode() are difficult
to monkey-patch without crippling the performance of e107-test.
This commit is contained in:
Nick Liu
2018-09-23 18:39:30 -05:00
parent 9b17485656
commit a70d027f65

View File

@@ -68,7 +68,11 @@ class sitelinks_alt
}
else
{
$link_icon = $lk['link_button'] ? e_IMAGE_ABS.'icons/'.$lk['link_button'] : $icon;
$link_icon = $lk['link_button']
? (($lk['link_button'][0] == "{")
? $tp->replaceConstants($lk['link_button'],'abs')
: e_IMAGE_ABS.'icons/'.$lk['link_button'])
: $icon;
}
$main_linkid = $lk['link_id'];