mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed result div for string modules bug
This commit is contained in:
parent
ce6d54e32f
commit
158cbc74e2
@ -3879,21 +3879,16 @@ function html_print_timezone_select($name, $selected='')
|
|||||||
* Enclose a text into a result_div
|
* Enclose a text into a result_div
|
||||||
*
|
*
|
||||||
* @param string Text to enclose
|
* @param string Text to enclose
|
||||||
* @param boolean Return formatted text without html tags.
|
|
||||||
*
|
*
|
||||||
* @return string Text inside the result_div
|
* @return string Text inside the result_div
|
||||||
*/
|
*/
|
||||||
function html_print_result_div($text, $text_only)
|
function html_print_result_div($text)
|
||||||
{
|
{
|
||||||
$text = preg_replace('/</', '<', $text);
|
$text = preg_replace('/</', '<', $text);
|
||||||
$text = preg_replace('/>/', '>', $text);
|
$text = preg_replace('/>/', '>', $text);
|
||||||
$text = preg_replace('/\n/i', '<br>', $text);
|
$text = preg_replace('/\n/i', '<br>', $text);
|
||||||
$text = preg_replace('/\s/i', ' ', $text);
|
$text = preg_replace('/\s/i', ' ', $text);
|
||||||
|
|
||||||
if ($text_only) {
|
|
||||||
return $text;
|
|
||||||
}
|
|
||||||
|
|
||||||
$enclose = "<div id='result_div' style='width: 100%; height: 100%; overflow: auto; padding: 10px; font-size: 14px; line-height: 16px; font-family: mono,monospace; text-align: left'>";
|
$enclose = "<div id='result_div' style='width: 100%; height: 100%; overflow: auto; padding: 10px; font-size: 14px; line-height: 16px; font-family: mono,monospace; text-align: left'>";
|
||||||
$enclose .= $text;
|
$enclose .= $text;
|
||||||
$enclose .= '</div>';
|
$enclose .= '</div>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user