aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-08 12:55:21 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-08 12:55:21 +0000
commit4d37741c63325b382bee1d7c43e176ac1e92674e (patch)
tree5c428a9d8a7cf1e73268bc79b51fc8bc1d927feb /mod
parenta4340107482a45d9a1b04dbfda9a6c0578c75e59 (diff)
downloadelgg-4d37741c63325b382bee1d7c43e176ac1e92674e.tar.gz
elgg-4d37741c63325b382bee1d7c43e176ac1e92674e.tar.bz2
* Introducing substr wrapper function
* Wire strips tags (Closes #1045) git-svn-id: https://code.elgg.org/elgg/trunk@3323 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/thewire/start.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/thewire/start.php b/mod/thewire/start.php
index 9b313eed8..91618a48d 100644
--- a/mod/thewire/start.php
+++ b/mod/thewire/start.php
@@ -169,10 +169,11 @@
$thewire->access_id = $access_id;
// Set its description appropriately
- if (is_callable('mb_substr'))
- $thewire->description = mb_substr($post, 0, 160);
+ $thewire->description = elgg_substr(strip_tags($post), 0, 160);
+ /*if (is_callable('mb_substr'))
+ $thewire->description = mb_substr(strip_tags($post), 0, 160);
else
- $thewire->description = substr($post, 0, 160);
+ $thewire->description = substr(strip_tags($post), 0, 160);*/
// add some metadata
$thewire->method = $method; //method, e.g. via site, sms etc