From: Andrew Dolgov Date: Wed, 30 May 2007 04:42:33 +0000 (+0100) Subject: fix option OPEN_LINKS_IN_NEW_WINDOW (closes #130) X-Git-Tag: 1.2.12~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c41890b059f3dfce381be96d483674c70cf15b65;p=tt-rss.git fix option OPEN_LINKS_IN_NEW_WINDOW (closes #130) --- diff --git a/functions.php b/functions.php index 8668ab09..308ae748 100644 --- a/functions.php +++ b/functions.php @@ -3594,12 +3594,12 @@ print "
".__('Tags:')." $f_tags_str
"; } + $line["content"] = sanitize_rss($link, $line["content"]); + if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) { $line["content"] = preg_replace("/href=/i", "target=\"_new\" href=", $line["content"]); } - $line["content"] = sanitize_rss($link, $line["content"]); - print $line["content"] . ""; print "";