diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-22 17:36:58 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-22 17:36:58 +0000 |
commit | 95fc61c9a8495e9fd4e1ea5e4fd3426886c70f0b (patch) | |
tree | c554f47a24f1a23b3b13f4b15476dc7523491357 /core/helpers | |
parent | d61691fd95eca1246d36b5e36d7696369301a8b5 (diff) |
Standardize to uppercase DESC in the order by method calls
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/access.php | 2 | ||||
-rw-r--r-- | core/helpers/core_block.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php index 6540e3b8..8a88bdf5 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -158,7 +158,7 @@ class access_Core { ->where("`items`.`id` <> $item->id") ->join("access_intents", "items.id", "access_intents.item_id") ->where("access_intents.view_$group->id", 0) - ->orderby("level", "desc") + ->orderby("level", "DESC") ->limit(1) ->find(); diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index a15abd48..16af66b0 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -42,14 +42,14 @@ class core_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")->orderby("created", "DESC")->find_all(10); break; case "log_entries": $block->css_id = "gLogEntries"; $block->title = t("Log Entries"); $block->content = new View("admin_block_log_entries.html"); - $block->content->entries = ORM::factory("log")->orderby("timestamp", "desc")->find_all(5); + $block->content->entries = ORM::factory("log")->orderby("timestamp", "DESC")->find_all(5); break; case "stats": |