smilie hook
This commit is contained in:
parent
57d631b47a
commit
ff572487a3
|
@ -656,7 +656,7 @@ if(! function_exists('smilies')) {
|
||||||
function smilies($s) {
|
function smilies($s) {
|
||||||
$a = get_app();
|
$a = get_app();
|
||||||
|
|
||||||
return str_replace(
|
$s = str_replace(
|
||||||
array( '<3', '</3', '<\\3', ':-)', ':)', ';-)', ':-(', ':(', ':-P', ':P', ':-"', ':-x', ':-X', ':-D', '8-|', '8-O',
|
array( '<3', '</3', '<\\3', ':-)', ':)', ';-)', ':-(', ':(', ':-P', ':P', ':-"', ':-x', ':-X', ':-D', '8-|', '8-O',
|
||||||
'~friendika', 'Diaspora*' ),
|
'~friendika', 'Diaspora*' ),
|
||||||
array(
|
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>',
|
'<a href="http://joindiaspora.com">Diaspora<img src="' . $a->get_baseurl() . '/images/diaspora.png" alt="Diaspora*" /></a>',
|
||||||
|
|
||||||
), $s);
|
), $s);
|
||||||
|
|
||||||
|
call_hooks('smilie', $s);
|
||||||
|
return $s;
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue