Commit 4f7605ce by Scott

Refactor UsersController to avoid duplication

parent fbd032ff
......@@ -1562,7 +1562,7 @@ function qa_db_newest_users_selectspec($start, $count = null)
function qa_db_users_from_level_selectspec($level)
{
return array(
'columns' => array('^users.userid', 'handle', 'level'),
'columns' => array('^users.userid', 'handle', 'flags', 'level', 'email', 'avatarblobid' => 'BINARY avatarblobid', 'avatarwidth', 'avatarheight'),
'source' => '^users WHERE level>=# ORDER BY level DESC',
'arguments' => array($level),
'sortdesc' => 'level',
......@@ -1589,7 +1589,7 @@ function qa_db_users_with_flag_selectspec($flag, $start = 0, $limit = null)
}
return array(
'columns' => array('^users.userid', 'handle', 'flags', 'level'),
'columns' => array('^users.userid', 'handle', 'flags', 'level', 'email', 'avatarblobid' => 'BINARY avatarblobid', 'avatarwidth', 'avatarheight'),
'source' => $source,
'arguments' => $arguments,
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment