Event hook for notice search pages
This commit is contained in:
parent
579fc11862
commit
08b430a247
@ -138,11 +138,14 @@ class NoticesearchAction extends SearchAction
|
|||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$terms = preg_split('/[\s,]+/', $q);
|
if (Event::handle('StartNoticeSearchShowResults', array($this, $q, $notice))) {
|
||||||
$nl = new SearchNoticeList($notice, $this, $terms);
|
$terms = preg_split('/[\s,]+/', $q);
|
||||||
$cnt = $nl->show();
|
$nl = new SearchNoticeList($notice, $this, $terms);
|
||||||
$this->pagination($page > 1, $cnt > NOTICES_PER_PAGE,
|
$cnt = $nl->show();
|
||||||
$page, 'noticesearch', array('q' => $q));
|
$this->pagination($page > 1, $cnt > NOTICES_PER_PAGE,
|
||||||
|
$page, 'noticesearch', array('q' => $q));
|
||||||
|
Event::handle('EndNoticeSearchShowResults', array($this, $q, $notice));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showScripts()
|
function showScripts()
|
||||||
|
Loading…
Reference in New Issue
Block a user