From ff572487a38f9d703bf4ad37f3f8a9a499326a81 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 12 Sep 2011 03:21:39 -0700 Subject: [PATCH] smilie hook --- include/text.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/text.php b/include/text.php index 33add768f8..2d65b681db 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( '<3', '</3', '<\\3', ':-)', ':)', ';-)', ':-(', ':(', ':-P', ':P', ':-"', ':-x', ':-X', ':-D', '8-|', '8-O', '~friendika', 'Diaspora*' ), array( @@ -680,6 +680,10 @@ function smilies($s) { 'DiasporaDiaspora*', ), $s); + + call_hooks('smilie', $s); + return $s; + }}