summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/comment.inc3
-rw-r--r--includes/theme.inc10
2 files changed, 4 insertions, 9 deletions
diff --git a/includes/comment.inc b/includes/comment.inc
index 5d5a3e98c..983117392 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -45,6 +45,8 @@ function comment_settings($mode, $order, $threshold) {
function comment_form($edit) {
global $user;
+ $form .= "<a name=\"comment\"></a>\n";
+
// name field:
$form .= form_item(t("Your name"), format_name($user));
@@ -293,6 +295,7 @@ function comment_render($lid, $cid) {
$threshold = $user->uid ? $user->threshold : variable_get(default_comment_threshold, 3);
}
+ print "<a name=\"comment\"></a>\n";
print "<form method=\"post\" action=\"$REQUEST_URI\">\n";
/*
diff --git a/includes/theme.inc b/includes/theme.inc
index 60bf86cd0..8a28b81e3 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -79,15 +79,7 @@ class BaseTheme {
function comment_controls($threshold = 1, $mode = 3, $order = 1) {
- global $user, $id;
-
- $output .= form_item(t("Comment viewing options"), comment_mode($mode) . comment_order($order) . comment_threshold($threshold) ." <input type=\"submit\" name=\"op\" value=\"". t("Update settings") ."\" />", t("Select your prefered way to display the comments and click 'Update settings' to active your changes."));
-
- if (user_access("post comment")) {
- $output .= form_item(t("Add a comment"), "<input type=\"submit\" name=\"op\" value=\"". t("Add comment") ."\" />", t("Click 'Add comment' to start a new thread in the discussion."));
- }
-
- return $output;
+ return form_item(t("Comment viewing options"), comment_mode($mode) . comment_order($order) . comment_threshold($threshold) ." <input type=\"submit\" name=\"op\" value=\"". t("Update settings") ."\" />", t("Select your prefered way to display the comments and click 'Update settings' to active your changes."));
}
function comment($comment, $link = 0) {