summaryrefslogtreecommitdiff
path: root/node.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-09-16 11:33:14 +0000
committerDries Buytaert <dries@buytaert.net>2001-09-16 11:33:14 +0000
commit2d1e9126cb10f52e7711ce121f8bdaa5bdc71aa4 (patch)
tree51c3918085542ee9487bfb4bc95feee502281eec /node.php
parentf358893b52f364aefbdab41a5e1407d54f0c2b59 (diff)
downloadbrdo-2d1e9126cb10f52e7711ce121f8bdaa5bdc71aa4.tar.gz
brdo-2d1e9126cb10f52e7711ce121f8bdaa5bdc71aa4.tar.bz2
- Added the new user module!
Diffstat (limited to 'node.php')
-rw-r--r--node.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/node.php b/node.php
index 89f1cc0a7..bb195ce2f 100644
--- a/node.php
+++ b/node.php
@@ -77,7 +77,7 @@ function node_failure() {
function node_history($node) {
global $status;
if ($node->status == $status[expired] || $node->status == $status[posted]) {
- $output .= "<dt><b>". format_date($node->timestamp) ." by ". format_name($node->name) .":</b></dt><dd>". check_output($node->log, 1) ."<p /></dd>";
+ $output .= "<dt><b>". format_date($node->timestamp) ." by ". format_name($node) .":</b></dt><dd>". check_output($node->log, 1) ."<p /></dd>";
}
if ($node->pid) {
$output .= node_history(node_get_object(array("nid" => $node->pid)));
@@ -88,11 +88,11 @@ function node_history($node) {
$number = ($title ? db_result(db_query("SELECT COUNT(nid) FROM node WHERE title = '$title' AND status = $status[posted]")) : 1);
if ($number > 1) {
- $result = db_query("SELECT n.*, u.name FROM node n LEFT JOIN users u ON n.author = u.id WHERE n.title = '$title'");
+ $result = db_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN user u ON n.author = u.uid WHERE n.title = '$title'");
while ($node = db_fetch_object($result)) {
if (node_access($node)) {
- $output .= "<P><B><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A></B><BR><SMALL>$node->type - ". format_name($node->name) ." - ". format_date($node->timestamp, "small") ."</SMALL></P>";
+ $output .= "<P><B><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A></B><BR><SMALL>$node->type - ". format_name($node) ." - ". format_date($node->timestamp, "small") ."</SMALL></P>";
}
}
@@ -110,7 +110,6 @@ elseif ($number) {
$theme->footer();
break;
default:
- user_rehash();
node_render($node);
}
}