1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-20 04:31:23 +01:00

Bugfix: with disabling config[markup_urls]

This commit is contained in:
Michael Save 2012-05-08 23:59:54 +10:00
parent 8ad09013c5
commit 829269324f

View File

@ -1396,8 +1396,10 @@ function markup(&$body, $track_cites = false) {
if ($config['auto_unicode']) {
$body = unicodify($body);
foreach ($markup_urls as &$url) {
$body = str_replace(unicodify($url), $url, $body);
if ($config['markup_urls']) {
foreach ($markup_urls as &$url) {
$body = str_replace(unicodify($url), $url, $body);
}
}
}