diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-08-22 23:42:26 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-08-22 23:42:26 +0000 |
commit | df4226866779f75eacab7f62da36b22dc21d5e44 (patch) | |
tree | e6c58d3d77187050fb4b966cc78a69766369c52c /views/default/output/longtext.php | |
parent | 60c1387a16ea4944674b0c9da2273158d1fbf0b4 (diff) | |
download | elgg-df4226866779f75eacab7f62da36b22dc21d5e44.tar.gz elgg-df4226866779f75eacab7f62da36b22dc21d5e44.tar.bz2 |
Merged r6812:6837 from 1.7 branch to trunk (skipping some changes to plugins like groups and wire)
git-svn-id: http://code.elgg.org/elgg/trunk@6851 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output/longtext.php')
-rw-r--r-- | views/default/output/longtext.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/views/default/output/longtext.php b/views/default/output/longtext.php index a8540913f..1c57375de 100644 --- a/views/default/output/longtext.php +++ b/views/default/output/longtext.php @@ -8,10 +8,20 @@ * @author Curverider Ltd * @link http://elgg.org/ * - * @uses $vars['text'] The text to display - * + * @uses $vars['value'] The text to display + * @uses $vars['parse_urls'] Whether to turn urls into links. Default is true. */ -global $CONFIG; +$parse_urls = isset($vars['parse_urls']) ? $vars['parse_urls'] : TRUE; + +$text = $vars['value']; + +$text = filter_tags($text); + +if ($parse_urls) { + $text = parse_urls($text); +} + +$text = autop($text); -echo autop(parse_urls(filter_tags($vars['value'])));
\ No newline at end of file +echo $text; |