diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-25 19:26:52 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-25 19:26:52 -0800 |
commit | 0121bfd5850bdc59bf0cd656c61c953421a85890 (patch) | |
tree | 439172283f1ae2653407af2b38a3a57895adf104 /modules/gallery/helpers/gallery_block.php | |
parent | 0ef6994f23300f3c6bfb83193b4101202dbc16f8 (diff) |
ORM::orderby -> ORM::order_by
Diffstat (limited to 'modules/gallery/helpers/gallery_block.php')
-rw-r--r-- | modules/gallery/helpers/gallery_block.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_block.php b/modules/gallery/helpers/gallery_block.php index b5c32ad2..d09f1c80 100644 --- a/modules/gallery/helpers/gallery_block.php +++ b/modules/gallery/helpers/gallery_block.php @@ -46,7 +46,7 @@ class gallery_block_Core { $block->title = t("Photo stream"); $block->content = new View("admin_block_photo_stream.html"); $block->content->photos = - ORM::factory("item")->where("type", "photo")->orderby("created", "DESC")->find_all(10); + ORM::factory("item")->where("type", "photo")->order_by("created", "DESC")->find_all(10); break; case "log_entries": @@ -54,7 +54,7 @@ class gallery_block_Core { $block->title = t("Log entries"); $block->content = new View("admin_block_log_entries.html"); $block->content->entries = ORM::factory("log") - ->orderby(array("timestamp" => "DESC", "id" => "DESC"))->find_all(5); + ->order_by(array("timestamp" => "DESC", "id" => "DESC"))->find_all(5); break; case "stats": |