diff -r db6b116b8ea7 -r b5b8e7ab0914 includes/namespaces/default.php --- a/includes/namespaces/default.php Fri Dec 18 05:05:01 2009 -0500 +++ b/includes/namespaces/default.php Fri Dec 18 05:12:02 2009 -0500 @@ -1005,6 +1005,8 @@ $row = $db->fetchrow(); // Get comment counts + // FIXME: Apparently there's a bit of recursion in here. Fetching permissions depends on this cdata function. + // Perhaps we should eliminate session's dependency on cdata? (What is it used for?) $q = $db->sql_query('SELECT approved FROM ' . table_prefix . "comments WHERE page_id = '$page_id_db' AND namespace = '$namespace_db';"); // yay parallel assignment $row['comments_approved'] = $row['comments_unapproved'] = $row['comments_spam'] = 0;