summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/access.php2
-rw-r--r--core/helpers/core_block.php4
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":