aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-12 03:21:39 -0700
committerFriendika <info@friendika.com>2011-09-12 03:21:39 -0700
commitff572487a38f9d703bf4ad37f3f8a9a499326a81 (patch)
tree16be6ad7a5ca1fbbea39d613522409a9fed38131 /include
parent57d631b47a0604ac4a50fb9294db1cea35c0944a (diff)
downloadvolse-hubzilla-ff572487a38f9d703bf4ad37f3f8a9a499326a81.tar.gz
volse-hubzilla-ff572487a38f9d703bf4ad37f3f8a9a499326a81.tar.bz2
volse-hubzilla-ff572487a38f9d703bf4ad37f3f8a9a499326a81.zip
smilie hook
Diffstat (limited to 'include')
-rw-r--r--include/text.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 33add768f..2d65b681d 100644
--- a/include/text.php
+++ b/include/text.php
@@ -656,7 +656,7 @@ if(! function_exists('smilies')) {
function smilies($s) {
$a = get_app();
- return str_replace(
+ $s = str_replace(
array( '&lt;3', '&lt;/3', '&lt;\\3', ':-)', ':)', ';-)', ':-(', ':(', ':-P', ':P', ':-"', ':-x', ':-X', ':-D', '8-|', '8-O',
'~friendika', 'Diaspora*' ),
array(
@@ -680,6 +680,10 @@ function smilies($s) {
'<a href="http://joindiaspora.com">Diaspora<img src="' . $a->get_baseurl() . '/images/diaspora.png" alt="Diaspora*" /></a>',
), $s);
+
+ call_hooks('smilie', $s);
+ return $s;
+
}}