mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-16 18:32:07 -04:00
Convert all DB where() calls to take 3 arguments.
Convert all open_paren() calls to and_open() or or_open() as appropriate.
This commit is contained in:
@@ -49,7 +49,7 @@ class Admin_Comments_Controller extends Admin_Controller {
|
||||
$view->content->state = $state;
|
||||
$view->content->comments = ORM::factory("comment")
|
||||
->order_by("created", "DESC")
|
||||
->where("state", $state)
|
||||
->where("state", "=", $state)
|
||||
->limit(self::$items_per_page, ($page - 1) * self::$items_per_page)
|
||||
->find_all();
|
||||
$view->content->pager = new Pagination();
|
||||
@@ -120,7 +120,7 @@ class Admin_Comments_Controller extends Admin_Controller {
|
||||
access::verify_csrf();
|
||||
|
||||
ORM::factory("comment")
|
||||
->where("state", "spam")
|
||||
->where("state", "=", "spam")
|
||||
->delete_all();
|
||||
url::redirect("admin/comments/queue/spam");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user