safety wrapper for db->GetAll
git-svn-id: file:///home/shish/svn/shimmie2/trunk@690 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@ -22,7 +22,7 @@ class Notes extends Extension {
|
||||
|
||||
if(is_a($event, 'DisplayingImageEvent')) {
|
||||
global $database;
|
||||
$notes = $database->db->GetAll("SELECT * FROM image_notes WHERE image_id = ?", array($event->image->id));
|
||||
$notes = $database->get_all("SELECT * FROM image_notes WHERE image_id = ?", array($event->image->id));
|
||||
$this->theme->display_notes($event->page, $notes);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user