mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 01:33:51 -04:00
Change search callbacks to use the event system, so move them out of
xxx_search helpers and into xxx_event helpers.
This commit is contained in:
@@ -38,4 +38,15 @@ class comment_event_Core {
|
||||
->url("#comments")
|
||||
->css_id("gCommentsLink"));
|
||||
}
|
||||
|
||||
static function item_index_data($item, $data) {
|
||||
foreach (Database::instance()
|
||||
->select("text")
|
||||
->from("comments")
|
||||
->where("item_id", $item->id)
|
||||
->get()
|
||||
->as_array() as $row) {
|
||||
$data[] = $row->text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user