Commit 80dc4357 authored by Dries's avatar Dries

- Bug #7135: fixed saving of comment viewing options in PostgreSQL. Patch by Adrian.

parent b8c6c4d3
......@@ -537,7 +537,6 @@ function comment_render($node, $cid = 0) {
if (empty($order)) {
$order = $user->sort ? $user->sort : ($_SESSION["comment_sort"] ? $_SESSION["comment_sort"] : variable_get("comment_default_order", 1));
}
if (empty($threshold)) {
$threshold = $user->threshold ? $user->threshold : ($_SESSION["comment_threshold"] ? $_SESSION["comment_threshold"] : variable_get("comment_default_threshold", 0));
}
......@@ -1326,6 +1325,9 @@ function theme_comment_threshold($threshold) {
if ($filters) {
return "<select name=\"threshold\">$filters</select>\n";
}
else {
return "<input type=\"hidden\" name=\"threshold\" value=\"$threshold\" />\n";
}
}
function theme_comment_controls($threshold = 1, $mode = 3, $order = 1, $comments_per_page = 50) {
......
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