summaryrefslogtreecommitdiff
path: root/includes/comment.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/comment.inc')
-rw-r--r--includes/comment.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/comment.inc b/includes/comment.inc
index b15cee23b..4e1a74f2c 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -281,9 +281,9 @@ function comment_render($lid, $cid) {
// Pre-process variables:
$lid = empty($lid) ? 0 : $lid;
$cid = empty($cid) ? 0 : $cid;
- $mode = ($user->id) ? $user->mode : 4;
- $order = ($user->id) ? $user->sort : 1;
- $threshold = ($user->id) ? $user->threshold : 3;
+ $mode = ($user->id) ? $user->mode : variable_get("default_comment_mode", 4);
+ $order = ($user->id) ? $user->sort : variable_get("default_comment_order", 1);
+ $threshold = ($user->id) ? $user->threshold : variable_get("default_comment_threshold", 3);
if ($user->id) {
// Comment control: