summaryrefslogtreecommitdiff
path: root/modules/tag/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-25 19:26:52 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-25 19:26:52 -0800
commit0121bfd5850bdc59bf0cd656c61c953421a85890 (patch)
tree439172283f1ae2653407af2b38a3a57895adf104 /modules/tag/controllers
parent0ef6994f23300f3c6bfb83193b4101202dbc16f8 (diff)
ORM::orderby -> ORM::order_by
Diffstat (limited to 'modules/tag/controllers')
-rw-r--r--modules/tag/controllers/admin_tags.php2
-rw-r--r--modules/tag/controllers/tags.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/controllers/admin_tags.php b/modules/tag/controllers/admin_tags.php
index 93b51814..aff44803 100644
--- a/modules/tag/controllers/admin_tags.php
+++ b/modules/tag/controllers/admin_tags.php
@@ -29,7 +29,7 @@ class Admin_Tags_Controller extends Admin_Controller {
if ($filter) {
$query->like("name", $filter);
}
- $view->content->tags = $query->orderby("name", "ASC")->find_all();
+ $view->content->tags = $query->order_by("name", "ASC")->find_all();
print $view;
}
diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php
index 9f9e45d9..dfa3a9b3 100644
--- a/modules/tag/controllers/tags.php
+++ b/modules/tag/controllers/tags.php
@@ -84,7 +84,7 @@ class Tags_Controller extends Controller {
$tag_part = end($tag_parts);
$tag_list = ORM::factory("tag")
->like("name", "{$tag_part}%", false)
- ->orderby("name", "ASC")
+ ->order_by("name", "ASC")
->limit($limit)
->find_all();
foreach ($tag_list as $tag) {