]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
missing second argument
authorEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 23:18:21 +0000 (19:18 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 23:18:21 +0000 (19:18 -0400)
darcs-hash:20080709231821-84dde-ecbcbed7e856a92b74c1bd9ba11c4c9be4ecb79f.gz

actions/noticesearch.php

index 721c843eed749cf2fb004cd60c50476aa18bf729..db0d6efadcc88d0d83f501ee23c9c365963316c7 100644 (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));