Commit 0cf64bca authored by Dries's avatar Dries

- Patch #218730 by swentel: removed unused function from forum.module.

parent 0f99a1fb
......@@ -676,19 +676,6 @@ function forum_get_topics($tid, $sortby, $forum_per_page) {
return $topics;
}
/**
* Finds the first unread node for a given forum.
*/
function _forum_new($tid) {
global $user;
$sql = "SELECT n.nid FROM {node} n LEFT JOIN {history} h ON n.nid = h.nid AND h.uid = %d INNER JOIN {term_node} r ON n.nid = r.nid AND r.tid = %d WHERE n.status = 1 AND h.nid IS NULL AND n.created > %d ORDER BY created";
$sql = db_rewrite_sql($sql);
$nid = db_result(db_query_range($sql, $user->uid, $tid, NODE_NEW_LIMIT, 0, 1));
return $nid ? $nid : 0;
}
/**
* Process variables for forums.tpl.php
*
......
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