mirror of
https://github.com/friendica/friendica
synced 2024-11-20 07:03:41 +00:00
support "no_smilies"
This commit is contained in:
parent
cf2edb5b9a
commit
2349852b4a
1 changed files with 5 additions and 0 deletions
|
@ -694,8 +694,13 @@ function linkify($s) {
|
|||
|
||||
if(! function_exists('smilies')) {
|
||||
function smilies($s, $sample = false) {
|
||||
|
||||
$a = get_app();
|
||||
|
||||
if(intval(get_config('system','no_smilies'))
|
||||
|| (local_user() && intval(get_pconfig(local_user(),'system','no_smilies'))))
|
||||
return $s;
|
||||
|
||||
$s = preg_replace_callback('/<pre>(.*?)<\/pre>/ism','smile_encode',$s);
|
||||
$s = preg_replace_callback('/<code>(.*?)<\/code>/ism','smile_encode',$s);
|
||||
|
||||
|
|
Loading…
Reference in a new issue