missing second argument

darcs-hash:20080709231821-84dde-ecbcbed7e856a92b74c1bd9ba11c4c9be4ecb79f.gz
This commit is contained in:
Evan Prodromou 2008-07-09 19:18:21 -04:00
parent 354ee48eee
commit dda9ceef4a

View File

@ -92,12 +92,12 @@ class NoticesearchAction extends SearchAction {
# FIXME: URL, image, video, audio
common_element_start('p', array('class' => 'content'));
if ($notice->rendered) {
common_raw($this->highlight($notice->rendered));
common_raw($this->highlight($notice->rendered), $terms);
} else {
# XXX: may be some uncooked notices in the DB,
# we cook them right now. This should probably disappear in future
# versions (>> 0.4.x)
common_raw($this->highlight(common_render_content($notice->content, $notice)));
common_raw($this->highlight(common_render_content($notice->content, $notice), $terms));
}
common_element_end('p');
$noticeurl = common_local_url('shownotice', array('notice' => $notice->id));