diff --git a/account.php b/account.php index 0ac0b7ab25b..ddaa3b40be3 100644 --- a/account.php +++ b/account.php @@ -217,7 +217,7 @@ function account_user($uname) { // Display contributions: if (user_access("access contents")) { $result = db_query("SELECT n.nid, n.type, n.title, n.timestamp, COUNT(c.cid) AS count FROM node n LEFT JOIN comments c ON c.lid = n.nid WHERE n.status = '". node_status("posted") ."' AND n.author = '$account->id' GROUP BY n.nid DESC ORDER BY n.nid DESC LIMIT 25"); - + while ($node = db_fetch_object($result)) { $nodes .= "\n"; $nodes .= " \n"; @@ -226,27 +226,27 @@ function account_user($uname) { $nodes .= "
". t("Subject") .":nid\">". check_output($node->title) ." (". format_plural($node->count, "comment", "comments") .")
\n"; $nodes .= "

\n"; } - + $theme->box(strtr(t("%a's contributions"), array("%a" => $uname)), ($nodes ? $nodes : t("Not posted any nodes."))); } if (user_access("access comments")) { $sresult = db_query("SELECT n.nid, n.title, COUNT(n.nid) AS count FROM comments c LEFT JOIN node n ON c.lid = n.nid WHERE c.author = '$account->id' GROUP BY n.nid DESC ORDER BY n.nid DESC LIMIT 5"); - + while ($node = db_fetch_object($sresult)) { $comments .= "

  • ". format_plural($node->count, "comment", "comments") ." ". t("attached to node") ." `nid\">". check_output($node->title) ."`:
  • \n"; $comments .= " \n"; } - + $theme->box(strtr(t("%a's comments"), array("%a" => $uname)), ($comments ? $comments : t("Not posted any comments."))); } - + $theme->footer(); } else {