support "no_smilies"
This commit is contained in:
parent
cf2edb5b9a
commit
2349852b4a
|
@ -694,8 +694,13 @@ function linkify($s) {
|
||||||
|
|
||||||
if(! function_exists('smilies')) {
|
if(! function_exists('smilies')) {
|
||||||
function smilies($s, $sample = false) {
|
function smilies($s, $sample = false) {
|
||||||
|
|
||||||
$a = get_app();
|
$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('/<pre>(.*?)<\/pre>/ism','smile_encode',$s);
|
||||||
$s = preg_replace_callback('/<code>(.*?)<\/code>/ism','smile_encode',$s);
|
$s = preg_replace_callback('/<code>(.*?)<\/code>/ism','smile_encode',$s);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue