From aa0d2e8da48852a1ed9e0f86c3611cf0867d48fb Mon Sep 17 00:00:00 2001 From: secretr Date: Mon, 15 Nov 2010 09:03:54 +0000 Subject: [PATCH] re-enable e_parse html wrap method, UI wrap option for text fields added --- e107_handlers/e_parse_class.php | 2 +- e107_handlers/form_handler.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index e141089bc..85d239d31 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -685,7 +685,7 @@ class e_parse */ //TODO handle htmlwrap somehow - return $str; + //return $str; // Don't wrap if non-numeric width $width = intval($width); diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index f765d76c7..403d98ab4 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -1313,6 +1313,10 @@ class e_form { $value = $tp->html_truncate($value, $parms['htmltruncate'], '...'); } + if(vartrue($parms['wrap'])) + { + $value = $tp->htmlwrap($value, (int)$parms['wrap'], varset($parms['wrapChar'], ' ')); + } $value = vartrue($parms['pre']).$value.vartrue($parms['post']); break;