From 34dad844147c5ee46cbdba310a36173244a0ff11 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 31 Jul 2013 16:41:06 +0400 Subject: [PATCH] support term highlighting in cdm title --- classes/feeds.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/classes/feeds.php b/classes/feeds.php index 874f7678..9aa75bbe 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -561,6 +561,13 @@ class Feeds extends Handler_Protected { $reply['content'] .= ""; + if ($highlight_words && count($highlight_words > 0)) { + foreach ($highlight_words as $word) { + $line["title"] = preg_replace("/(\Q$word\E)/i", + "$1", $line["title"]); + } + } + $reply['content'] .= "