summaryrefslogtreecommitdiff
path: root/node.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-10-16 20:13:22 +0000
committerDries Buytaert <dries@buytaert.net>2001-10-16 20:13:22 +0000
commit33a3502dfee073325f5046baee655e6a2bdb29ec (patch)
tree7632ce5324998a3dac61b975cc2b3e24e1080063 /node.php
parent2ec1512419549fa48fb9925b8cd31e239864769d (diff)
downloadbrdo-33a3502dfee073325f5046baee655e6a2bdb29ec.tar.gz
brdo-33a3502dfee073325f5046baee655e6a2bdb29ec.tar.bz2
- Removed a node's link ID (lid) as discussed on the mailing list. See
'updates/3.00-to.x.xx.mysql' for the required MySQL updates. - Renamed some "author" fields to "uid" fields for sake of consistency. - Fixed the coding style of some PHP files. - Fixed the moderation queue (fairly untested though). - Re-introduced the temporary SQL table in _node_get(). - Added a missing 'auto_increment' to 'updates/3.00-to-x.xx.mysql'.
Diffstat (limited to 'node.php')
-rw-r--r--node.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.php b/node.php
index ac56fafe5..e79e551fc 100644
--- a/node.php
+++ b/node.php
@@ -88,11 +88,11 @@ function node_history($node) {
$number = ($title ? db_num_rows(db_query("SELECT nid FROM node WHERE title = '$title' AND status = '". node_status("posted") ."'")) : 1);
if ($number > 1) {
- $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' AND n.status = '". node_status("posted") ."' ORDER BY timestamp DESC");
+ $result = db_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN user u ON n.uid = u.uid WHERE n.title = '$title' AND n.status = '". node_status("posted") ."' ORDER BY timestamp DESC");
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) ." - ". 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>";
}
}