diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/output/longtext.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/views/default/output/longtext.php b/views/default/output/longtext.php index c188d0e16..ffdfd87cc 100644 --- a/views/default/output/longtext.php +++ b/views/default/output/longtext.php @@ -14,12 +14,16 @@ $class = 'elgg-output'; $additional_class = elgg_extract('class', $vars, ''); if ($additional_class) { - $class = "$class $additional_class"; + $vars['class'] = "$class $additional_class"; +} else { + $vars['class'] = $class; } $parse_urls = elgg_extract('parse_urls', $vars, true); +unset($vars['parse_urls']); $text = $vars['value']; +unset($vars['value']); $text = filter_tags($text); @@ -29,4 +33,6 @@ if ($parse_urls) { $text = autop($text); -echo "<div class=\"$class\">$text</div>"; +$attributes = elgg_format_attributes($vars); + +echo "<div $attributes>$text</div>"; |