summaryrefslogtreecommitdiff
path: root/node.php
diff options
context:
space:
mode:
authornatrak <>2001-06-15 12:09:37 +0000
committernatrak <>2001-06-15 12:09:37 +0000
commita7fddeb85a24d0cf51f5cb44a0f33961bbf655cc (patch)
tree0296d7980cd042abd1bd39ba6d5768ab3fa23eb3 /node.php
parent21386979e79078f1454a002e8c2550aca61a8327 (diff)
downloadbrdo-a7fddeb85a24d0cf51f5cb44a0f33961bbf655cc.tar.gz
brdo-a7fddeb85a24d0cf51f5cb44a0f33961bbf655cc.tar.bz2
Changes
- Modified comment.inc to use form_*() functions. Might have some side-effects I haven't found yet. Report any problems.
Diffstat (limited to 'node.php')
-rw-r--r--node.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/node.php b/node.php
index 711268674..dae4683b9 100644
--- a/node.php
+++ b/node.php
@@ -5,20 +5,20 @@ include_once "includes/common.inc";
page_header();
function node_render($node) {
- global $id, $cid, $op, $moderate, $pid, $subject, $comment, $theme, $mode, $order, $threshold, $PHP_SELF;
+ global $id, $cid, $op, $moderate, $pid, $edit, $theme, $mode, $order, $threshold, $PHP_SELF;
if ($node->comment) {
switch($op) {
case t("Preview comment"):
$theme->header();
- comment_preview(check_input($pid), check_input($id), $subject, $comment);
+ comment_preview($edit);
$theme->footer();
break;
case t("Post comment"):
- comment_post(check_input($pid), check_input($id), check_input($subject), check_input($comment));
+ comment_post($edit);
$theme->header();
node_view($node);
- comment_render($id, $cid);
+ comment_render($edit[id], $cid);
$theme->footer();
break;
case t("Add comment"):
@@ -93,7 +93,7 @@ if ($number > 1) {
$theme->footer();
}
elseif ($number) {
- $node = ($title ? node_get_object(array("title" => $title)) : node_get_object(array("nid" => $id)));
+ $node = ($title ? node_get_object(array("title" => $title)) : node_get_object(array("nid" => ($edit[id] ? $edit[id] : $id))));
if ($node && node_visible($node)) {
switch ($op) {
case "history":