Returns $limit users, or all of them if $limit is null (used in qa_db_selectspec_count).
*/
{
require_onceQA_INCLUDE_DIR.'qa-app-updates.php';
require_onceQA_INCLUDE_DIR.'app/updates.php';
$source='^users JOIN ^userpoints ON ^users.userid=^userpoints.userid JOIN ^userfavorites ON ^users.userid=^userfavorites.entityid WHERE ^userfavorites.userid=$ AND ^userfavorites.entitytype=$ ORDER BY ^users.handle';
$arguments=array($userid,QA_ENTITY_USER);
...
...
@@ -1538,7 +1538,7 @@
Returns $limit tags, or all of them if $limit is null (used in qa_db_selectspec_count).
*/
{
require_onceQA_INCLUDE_DIR.'qa-app-updates.php';
require_onceQA_INCLUDE_DIR.'app/updates.php';
$source='^words JOIN ^userfavorites ON ^words.wordid=^userfavorites.entityid WHERE ^userfavorites.userid=$ AND ^userfavorites.entitytype=$ ORDER BY ^words.tagcount DESC';
$arguments=array($userid,QA_ENTITY_TAG);
...
...
@@ -1564,7 +1564,7 @@
Return the selectspec to retrieve an array of $userid's favorited categories, with information about those categories.