summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-22 17:36:58 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-22 17:36:58 +0000
commit95fc61c9a8495e9fd4e1ea5e4fd3426886c70f0b (patch)
treec554f47a24f1a23b3b13f4b15476dc7523491357
parentd61691fd95eca1246d36b5e36d7696369301a8b5 (diff)
Standardize to uppercase DESC in the order by method calls
-rw-r--r--core/controllers/admin_maintenance.php4
-rw-r--r--core/helpers/access.php2
-rw-r--r--core/helpers/core_block.php4
-rw-r--r--modules/comment/controllers/comments.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/core/controllers/admin_maintenance.php b/core/controllers/admin_maintenance.php
index cd1682cc..beb6cef7 100644
--- a/core/controllers/admin_maintenance.php
+++ b/core/controllers/admin_maintenance.php
@@ -60,9 +60,9 @@ class Admin_Maintenance_Controller extends Admin_Controller {
$view->content = new View("admin_maintenance.html");
$view->content->task_definitions = $this->_get_task_definitions();
$view->content->running_tasks =
- ORM::factory("task")->where("done", 0)->orderby("updated", "desc")->find_all();
+ ORM::factory("task")->where("done", 0)->orderby("updated", "DESC")->find_all();
$view->content->finished_tasks =
- ORM::factory("task")->where("done", 1)->orderby("updated", "desc")->find_all();
+ ORM::factory("task")->where("done", 1)->orderby("updated", "DESC")->find_all();
$view->content->csrf = access::csrf_token();
print $view;
}
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":
diff --git a/modules/comment/controllers/comments.php b/modules/comment/controllers/comments.php
index b4d7d24a..e3b75c56 100644
--- a/modules/comment/controllers/comments.php
+++ b/modules/comment/controllers/comments.php
@@ -31,7 +31,7 @@ class Comments_Controller extends REST_Controller {
$comments = ORM::factory("comment")
->where("item_id", $item->id)
->where("state", "published")
- ->orderby("created", "desc")
+ ->orderby("created", "DESC")
->find_all();
switch (rest::output_format()) {