Skip to content

Commit

Permalink
fixup! very WIP new alert page
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Oct 22, 2024
1 parent 2305116 commit 7998ab5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions classes/AlertView/NewAlert.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,26 +175,26 @@ private function getBasicData() {
private function getRecentResults($text) {
global $SEARCHENGINE;
$se = new \SEARCHENGINE($text);
$this->data['search_result_count'] = $se->run_count(0,10);
$se->run_search(0,1, 'date');
$this->data['search_result_count'] = $se->run_count(0, 10);
$se->run_search(0, 1, 'date');
}

private function getSearchSections() {
$sections = [
"uk" => gettext('All UK'),
"debates" => gettext('House of Commons debates'),
"whall" => gettext('Westminster Hall debates'),
"lords" => gettext('House of Lords debates'),
"wrans" => gettext('Written answers'),
"wms" => gettext('Written ministerial statements'),
"standing" => gettext('Bill Committees'),
"future" => gettext('Future Business'),
"ni" => gettext('Debates'),
"scotland" => gettext('All Scotland'),
"sp" => gettext('Debates'),
"spwrans" => gettext('Written answers'),
"wales" => gettext('Debates'),
"lmqs" => gettext('Questions to the Mayor'),
"uk" => gettext('All UK'),
"debates" => gettext('House of Commons debates'),
"whall" => gettext('Westminster Hall debates'),
"lords" => gettext('House of Lords debates'),
"wrans" => gettext('Written answers'),
"wms" => gettext('Written ministerial statements'),
"standing" => gettext('Bill Committees'),
"future" => gettext('Future Business'),
"ni" => gettext('Debates'),
"scotland" => gettext('All Scotland'),
"sp" => gettext('Debates'),
"spwrans" => gettext('Written answers'),
"wales" => gettext('Debates'),
"lmqs" => gettext('Questions to the Mayor'),
];

$this->data['sections'] = [];
Expand Down

0 comments on commit 7998ab5

Please sign in to comment.