| @@ 964-970 (lines=7) @@ | ||
| 961 | $output_html = strtr($output_html, array("\n" => '<br>')); |
|
| 962 | ||
| 963 | // Enclosing the user input within some other text? |
|
| 964 | if (!empty($row['enclose']) && !empty($output_html)) |
|
| 965 | $output_html = strtr($row['enclose'], array( |
|
| 966 | '{SCRIPTURL}' => $scripturl, |
|
| 967 | '{IMAGES_URL}' => $settings['images_url'], |
|
| 968 | '{DEFAULT_IMAGES_URL}' => $settings['default_images_url'], |
|
| 969 | '{INPUT}' => un_htmlspecialchars($output_html), |
|
| 970 | )); |
|
| 971 | ||
| 972 | $context['custom_fields'][] = array( |
|
| 973 | 'name' => $row['field_name'], |
|
| @@ 1534-1540 (lines=7) @@ | ||
| 1531 | $value = $value ? $txt['yes'] : $txt['no']; |
|
| 1532 | ||
| 1533 | // Enclosing the user input within some other text? |
|
| 1534 | if (!empty($custom['enclose'])) |
|
| 1535 | $value = strtr($custom['enclose'], array( |
|
| 1536 | '{SCRIPTURL}' => $scripturl, |
|
| 1537 | '{IMAGES_URL}' => $settings['images_url'], |
|
| 1538 | '{DEFAULT_IMAGES_URL}' => $settings['default_images_url'], |
|
| 1539 | '{INPUT}' => $value, |
|
| 1540 | )); |
|
| 1541 | ||
| 1542 | $memberContext[$user]['custom_fields'][] = array( |
|
| 1543 | 'title' => !empty($custom['title']) ? $custom['title'] : $custom['col_name'], |
|