summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-05-10 16:13:17 +0000
committerDries Buytaert <dries@buytaert.net>2003-05-10 16:13:17 +0000
commit73d5cf86448b96e1cd89c2308e1802abed6d6495 (patch)
treeca3be005b92969ce4aeb8ac328bfaceee88851f1
parentb523de70d39841532e8bc432c7c1aa6ab6983793 (diff)
downloadbrdo-73d5cf86448b96e1cd89c2308e1802abed6d6495.tar.gz
brdo-73d5cf86448b96e1cd89c2308e1802abed6d6495.tar.bz2
*** empty log message ***
-rw-r--r--modules/comment.module6
-rw-r--r--modules/comment/comment.module6
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/comment.module b/modules/comment.module
index b5b2dbe59..d7b042b96 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -1106,13 +1106,13 @@ function comment_controls($threshold = 1, $mode = 3, $order = 1, $nid, $page = 0
if (($mode == 2 || $mode == 4) && $comment_num > $comments_per_page) {
if ($page > 1) {
- $p[] = l(t("previous"), "node/view/$nid&amp;comment_page=". $page - 1);
+ $p[] = l(t("previous"), "node/view/$nid&amp;comment_page=". ($page - 1));
}
for ($n = 1; $n <= ceil($comment_num / $comments_per_page); $n++) {
$p[] = ($n == $page) ? "<b>&raquo;$n&laquo;</b>" : l($n, "node/view/$nid&amp;comment_page=$n");
}
if ($page < ceil($comment_num / $comments_per_page)) {
- $p[] = l(t("next"), "node/view/$nid&amp;comment_page". $page + 1);
+ $p[] = l(t("next"), "node/view/$nid&amp;comment_page=". ($page + 1));
}
$output .= form_item(t("Browse %a comments", array("%a" => $comment_num)), implode("&nbsp;&#149;&nbsp;", $p), t("There are more than %a comments in this node. Use these links to navigate through them.", array("%a" => $comments_per_page)));
}
@@ -1467,4 +1467,4 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
}
}
-?> \ No newline at end of file
+?>
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index b5b2dbe59..d7b042b96 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1106,13 +1106,13 @@ function comment_controls($threshold = 1, $mode = 3, $order = 1, $nid, $page = 0
if (($mode == 2 || $mode == 4) && $comment_num > $comments_per_page) {
if ($page > 1) {
- $p[] = l(t("previous"), "node/view/$nid&amp;comment_page=". $page - 1);
+ $p[] = l(t("previous"), "node/view/$nid&amp;comment_page=". ($page - 1));
}
for ($n = 1; $n <= ceil($comment_num / $comments_per_page); $n++) {
$p[] = ($n == $page) ? "<b>&raquo;$n&laquo;</b>" : l($n, "node/view/$nid&amp;comment_page=$n");
}
if ($page < ceil($comment_num / $comments_per_page)) {
- $p[] = l(t("next"), "node/view/$nid&amp;comment_page". $page + 1);
+ $p[] = l(t("next"), "node/view/$nid&amp;comment_page=". ($page + 1));
}
$output .= form_item(t("Browse %a comments", array("%a" => $comment_num)), implode("&nbsp;&#149;&nbsp;", $p), t("There are more than %a comments in this node. Use these links to navigate through them.", array("%a" => $comments_per_page)));
}
@@ -1467,4 +1467,4 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
}
}
-?> \ No newline at end of file
+?>