Skip to content

Commit ca72f14

Browse files
committed
Small updates
1 parent 6b3bc0c commit ca72f14

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

controller/livesearch_controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public function title_search()
2222
$matches = $this->ideas->ideas_title_livesearch($title_chars, 10);
2323

2424
$json_response = new \phpbb\json_response();
25-
$json_response->send(array(
25+
$json_response->send([
2626
'keyword' => $title_chars,
2727
'results' => $matches,
28-
));
28+
]);
2929
}
3030
}

factory/ideas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public function ideas_title_livesearch($search, $limit = 10)
285285
'idea_id' => $row['idea_id'],
286286
'result' => $row['idea_id'],
287287
'clean_title' => $row['idea_title'],
288-
'display' => "<span>{$row['idea_title']}</span>",
288+
'display' => "<span>{$row['idea_title']}</span>", // spans are expected in phpBB's live search JS
289289
];
290290
}
291291
$this->db->sql_freeresult($result);

0 commit comments

Comments
 (0)