1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-18 14:58:05 +02:00

Fixes #3957 - UE 'text_value' did not displaying the 'text' label correctly

This commit is contained in:
Tijn Kuyper
2019-09-23 12:03:46 +02:00
parent f4c8fe1dfd
commit 98b0cc6763

View File

@ -90,7 +90,7 @@
{ {
// $_value = $tp->parseTemplate("{USER_EXTENDED={$parms[0]}.value}"); // $_value = $tp->parseTemplate("{USER_EXTENDED={$parms[0]}.value}");
$_value = user_extended_shortcode($parms[0].".value"); $_value = user_extended_shortcode($parms[0].".value");
//print_a($parms);
if($_value) if($_value)
{ {
@ -99,10 +99,10 @@
// $_text = $tp->parseTemplate("{USER_EXTENDED={$parms[0]}.text}"); // $_text = $tp->parseTemplate("{USER_EXTENDED={$parms[0]}.text}");
$_text = user_extended_shortcode($parms[0], ".text"); $_text = user_extended_shortcode($parms[0].".text");
$_mid = (isset($sc_style['USER_EXTENDED'][$key]['mid']) ? $sc_style['USER_EXTENDED'][$key]['mid'] : ''); $_mid = (isset($sc_style['USER_EXTENDED'][$key]['mid']) ? $sc_style['USER_EXTENDED'][$key]['mid'] : ': ');
return $__pre.$_text.$_mid.$_value.$__post; return $__pre.$_text.$_mid.$_value.$__post;
} }
return false; return false;