From 5defc29ff832d4c7bfb40cab0df1a34d0664409f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 22 Mar 2013 09:49:45 +0400 Subject: remove PTITLE kludge; use ajax --- include/functions.php | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 7d4ce2918..238ba0121 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2989,11 +2989,6 @@ "; } - $title_escaped = htmlspecialchars($line['title']); - - $rv['content'] .= "
" . - strip_tags($line['title']) . "
"; - $rv['content'] .= "
"; $rv['content'] .= "
"; @@ -3091,31 +3086,6 @@ $rv['content'] .= "
"; - // N-grams - - if (DB_TYPE == "pgsql" and defined('_NGRAM_TITLE_RELATED_THRESHOLD')) { - - $ngram_result = db_query($link, "SELECT id,title FROM - ttrss_entries,ttrss_user_entries - WHERE ref_id = id AND updated >= NOW() - INTERVAL '7 day' - AND similarity(title, '$title_escaped') >= "._NGRAM_TITLE_RELATED_THRESHOLD." - AND title != '$title_escaped' - AND owner_uid = $owner_uid"); - - if (db_num_rows($ngram_result) > 0) { - $rv['content'] .= "
". - "" . __('Related').""; - $rv['content'] .= "
"; - - while ($nline = db_fetch_assoc($ngram_result)) { - $rv['content'] .= "
".$nline['title']."
"; - - } - $rv['content'] .= "