X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnoticesearch.php;h=ee7bb86f40a28f7fac5aba0dc8a848a4268c68d8;hb=a597b2800122be618bbf620eb1e6ae61bf691d15;hp=257a925835677ab7cff287bb891dc111b3711dcd;hpb=4331b8b4f12f7c55afbe80fe828d77da6eaf9b84;p=quix0rs-gnu-social.git diff --git a/actions/noticesearch.php b/actions/noticesearch.php index 257a925835..ee7bb86f40 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -132,19 +132,19 @@ class NoticesearchAction extends SearchAction */ function showResults($q, $page) { - if ($this->notice->N === 0) { - $this->showEmptyResults($q, $page); - } - if (Event::handle('StartNoticeSearchShowResults', array($this, $q, $this->notice))) { - $terms = preg_split('/[\s,]+/', $q); - $nl = new SearchNoticeList($this->notice, $this, $terms); - $cnt = $nl->show(); - $this->pagination($page > 1, - $cnt > NOTICES_PER_PAGE, - $page, - 'noticesearch', - array('q' => $q)); + if ($this->notice->N === 0) { + $this->showEmptyResults($q, $page); + } else { + $terms = preg_split('/[\s,]+/', $q); + $nl = new SearchNoticeList($this->notice, $this, $terms); + $cnt = $nl->show(); + $this->pagination($page > 1, + $cnt > NOTICES_PER_PAGE, + $page, + 'noticesearch', + array('q' => $q)); + } Event::handle('EndNoticeSearchShowResults', array($this, $q, $this->notice)); } } @@ -202,7 +202,7 @@ class SearchNoticeListItem extends NoticeListItem { function showContent() { // FIXME: URL, image, video, audio - $this->out->elementStart('p', array('class' => 'entry-content')); + $this->out->elementStart('p', array('class' => 'e-content')); if ($this->notice->rendered) { $this->out->raw($this->highlight($this->notice->rendered, $this->terms)); } else {