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:
Bharat Mediratta
2009-11-26 12:09:04 -08:00
parent 22823df220
commit 1fd0e14359
51 changed files with 208 additions and 203 deletions
@@ -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");
}