X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ffeatured.php;h=79eba2aa67b9985372a2e23a1e977306a62439ca;hb=b4e649fe906a793cd5e62d6390065ea5d41c40db;hp=14d653cea20a9bef8696425b74a19335fa3158de;hpb=c2e529c72b17b61f2203466b2bfd73f07b8371f0;p=quix0rs-gnu-social.git diff --git a/actions/featured.php b/actions/featured.php index 14d653cea2..79eba2aa67 100644 --- a/actions/featured.php +++ b/actions/featured.php @@ -50,7 +50,7 @@ class FeaturedAction extends Action { var $page = null; - function isReadOnly() + function isReadOnly($args) { return true; } @@ -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();