Skip to content

Commit 0811412

Browse files
authored
Merge pull request #85 from alexplusde/hotfix-issue-84
fix rex_var_custom_link
2 parents ed729a0 + ab8ee3c commit 0811412

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/yform/value/choice_html.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function enterObject()
8181
$template = str_replace('choice', 'choice-view', $template);
8282
$getChoices = static function ($choices, $options) use (&$getChoices) {
8383
foreach ($choices as $choice) {
84-
if ('rex_yform_choice_group_view' == get_class($choice)) {
84+
if ('rex_yform_choice_group_view' == $choice::class) {
8585
/** @var rex_yform_choice_group_view $choice */
8686
$options = $getChoices($choice->choices, $options);
8787
} else {

lib/yform/value/custom_link.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ public static function getListValue($params)
5050
if ('' == $params['value']) {
5151
return '-';
5252
}
53-
return rex_var_custom_url::getCustomUrlText($params['value']);
53+
return rex_var_custom_link::getCustomUrlText($params['value']);
5454
}
5555
}

ytemplates/bootstrap/value.custom_link.tpl.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'yurl' => $this->getElement('yurl'),
1717
];
1818

19-
$widget = rex_var_custom_url::getWidget($buttonId, $name, $value, $parameters);
19+
$widget = rex_var_custom_link::getWidget($buttonId, $name, $value, $parameters);
2020

2121
$class_group = trim('form-group ' . $this->getHTMLClass() . ' ' . $this->getWarningClass());
2222

0 commit comments

Comments
 (0)