Browse Source

support "no_smilies"

pull/150/merge
friendica 9 years ago
parent
commit
2349852b4a
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      include/text.php

+ 5
- 0
include/text.php View File

@ -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…
Cancel
Save