1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Issue #3473 - menu button URL fix (part 2)

This commit is contained in:
Cameron
2018-10-02 12:20:40 -07:00
parent 3959c998c4
commit 7eeb23d5c2

View File

@@ -295,7 +295,7 @@ class cpage_shortcodes extends e_shortcode
}
$buttonText = (empty($this->var['menu_button_text'])) ? LAN_READ_MORE : $this->var['menu_button_text'];
$buttonUrl = (empty($this->var['menu_button_url'])) ? $url : $tp->replaceConstants($this->var['menu_button_url']);
$buttonUrl = (empty($this->var['menu_button_url'])) ? $url : $tp->replaceConstants($this->var['menu_button_url'], 'abs');
$buttonTarget = (empty($this->var['menu_button_target'])) ? '' : ' target="'.$this->var['menu_button_target'].'" '; //TODO add pref to admin area.
$text = vartrue($options['text'], $buttonText);