News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Minor Bug in Search.php

Started by calmmarc, February 06, 2005, 07:26:14 AM

Previous topic - Next topic

calmmarc

Hi,

I think there is a minor bug inside the function prepareSearchContext in Search.php.  I think there is a small mistake when setting the value of $output['first_post']['link']

Should the line:
'link' => '<a href="' . $scripturl . '?topic=' . $message['ID_TOPIC'] . '.0">' . $message['subject'] . '</a>',

..be changed to:
'link' => '<a href="' . $scripturl . '?topic=' . $message['ID_TOPIC'] . '.0">' . $message['first_subject'] . '</a>',


All the best,
Marcus

[Unknown]

 ! Properly censor the first post's subject and show it in the main link, not the matched subject. (Search.php)

-[Unknown]

Advertisement: