aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/start.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-08 17:54:37 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-08 17:54:37 +0000
commit7152b2616eace9c125f088304a901370fb6ce438 (patch)
tree34ce0f027e18df1fd11f41b8d40a2a1353174329 /mod/thewire/start.php
parentfc67cdac84861698ede61c4c2fb262939607ce49 (diff)
downloadelgg-7152b2616eace9c125f088304a901370fb6ce438.tar.gz
elgg-7152b2616eace9c125f088304a901370fb6ce438.tar.bz2
Hard limit to string lengths.
git-svn-id: https://code.elgg.org/elgg/trunk@3272 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/thewire/start.php')
-rw-r--r--mod/thewire/start.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/thewire/start.php b/mod/thewire/start.php
index da0e2f409..9b313eed8 100644
--- a/mod/thewire/start.php
+++ b/mod/thewire/start.php
@@ -168,8 +168,11 @@
// For now, set its access to public (we'll add an access dropdown shortly)
$thewire->access_id = $access_id;
- // Set its description appropriately
- $thewire->description = $post;
+ // Set its description appropriately
+ if (is_callable('mb_substr'))
+ $thewire->description = mb_substr($post, 0, 160);
+ else
+ $thewire->description = substr($post, 0, 160);
// add some metadata
$thewire->method = $method; //method, e.g. via site, sms etc