From a2f7c3f5090ec9f728b439ee758d7d62cacaf2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Fri, 6 Apr 2007 19:12:27 +0000 Subject: [PATCH] add cleanup_title() calls to search results (from David Kim) svn path=/trunk/boinc/; revision=12327 --- html/user/forum_search_action.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/html/user/forum_search_action.php b/html/user/forum_search_action.php index 7cab565cd9..99b611bc3f 100755 --- a/html/user/forum_search_action.php +++ b/html/user/forum_search_action.php @@ -3,6 +3,8 @@ * This file allows people to search for posts or a thread. Takes input from * forum_search.php **/ + +$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit require_once('../inc/forum.inc'); require_once('../inc/forum_std.inc'); @@ -44,11 +46,11 @@ if ($thread_ids){ foreach ($thread_ids as $key => $thread_id){ $thread = new Thread($thread_id); if ($thread->isHidden()) continue; - $thread_forum = $thread->getForum(); + $thread_forum = $thread->getForum(); echo ' - '.$thread_forum->getTitle().' - '.$thread->getTitle().''; + '.cleanup_title($thread_forum->getTitle()).' + '.cleanup_title($thread->getTitle()).''; echo ' '.($thread->getPostCount()+1).'
'.re_user_links($thread->getOwner()).'
@@ -78,11 +80,11 @@ if ($post_ids){ if ($post->isHidden()) continue; $options->setHighlightTerms($search_list); $contents = output_transform($post->getContent(),$options); - $thread_forum = $thread->getForum(); + $thread_forum = $thread->getForum(); echo ' - '.$thread_forum->getTitle().' - '.$thread->getTitle().' + '.cleanup_title($thread_forum->getTitle()).' + '.cleanup_title($thread->getTitle()).'
'.re_user_links($post->getOwner()).'
'.time_diff_str($post->getTimestamp(), time()).'