summaryrefslogtreecommitdiff
path: root/actions/featured.php
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-03-17 10:36:12 +1300
committerBrenda Wallace <shiny@cpan.org>2009-03-17 10:36:12 +1300
commit18c8a55ba61e507f08162149273a9a33b9b73ca0 (patch)
tree4449dd8c19363747ff88dcb5d922d7b1149be055 /actions/featured.php
parentc2e529c72b17b61f2203466b2bfd73f07b8371f0 (diff)
use common_database_tablename instead of repeating that if structure everywhere
Diffstat (limited to 'actions/featured.php')
-rw-r--r--actions/featured.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/actions/featured.php b/actions/featured.php
index 14d653cea..86fd3f374 100644
--- a/actions/featured.php
+++ b/actions/featured.php
@@ -116,15 +116,10 @@ class FeaturedAction extends Action
$quoted[] = "'$nick'";
}
- $table = "user";
- if(common_config('db','quote_identifiers')) {
- $table = '"' . $table . '"';
- }
-
$user = new User;
$user->whereAdd(sprintf('nickname IN (%s)', implode(',', $quoted)));
$user->limit(($this->page - 1) * PROFILES_PER_PAGE, PROFILES_PER_PAGE + 1);
- $user->orderBy($table .'.nickname ASC');
+ $user->orderBy(common_database_tablename('user') .'.nickname ASC');
$user->find();