diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-06-02 22:12:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-06-02 22:12:35 +0000 |
commit | b0c349e247b823e74d8c611cdc5d0931317e7757 (patch) | |
tree | 1eea57def39cd30e6c65051bdd349224ed3e929d /modules/moderate.module | |
parent | 993f4d2eadcd29221bc8e81f3013b92a6e921bdd (diff) | |
download | brdo-b0c349e247b823e74d8c611cdc5d0931317e7757.tar.gz brdo-b0c349e247b823e74d8c611cdc5d0931317e7757.tar.bz2 |
- Moved most of the options in structure.module to node.module. The
structure.module either needs work, or replacement by index.module:
see "admin > node > node settings".
It will do for now and it can always made better when we can think
of a better solution; it is the best I could think of. Now what?
index.module or structure.module? I'm currently pro index.module.
- Drastically simplified "variable.inc".
- Removed most dependecies on structure.module from all content related
modules. Thus making our modules more modular. ;)
- Fixed calculation glitch in queue.module.
- Fixed potential function name clash/conflict in rating.module, and
simplified some code on my way.
- Started removing all global variables $status and $rstatus. Global
variables are "yucky" so in near future, we will replace all global
$status variables by a call to node_status(). Originally, $status
was only introduced as a temporary hack and nothing is as permanent
as a temporary hack so I took it out when still possible.
- Changed the watchdog messages a bit.
Diffstat (limited to 'modules/moderate.module')
-rw-r--r-- | modules/moderate.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/moderate.module b/modules/moderate.module index c284df522..ceef124e5 100644 --- a/modules/moderate.module +++ b/modules/moderate.module @@ -16,7 +16,7 @@ function moderate_overview($query = array()) { $r1 = db_query("SELECT n.*, u.userid FROM node n LEFT JOIN users u ON n.author = u.id WHERE n.moderate LIKE '%$user->userid%' ORDER BY n.timestamp DESC LIMIT 30"); while ($node = db_fetch_object($r1)) { - $output .= " <TR><TD><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A></TD><TD>". category_name($node->cid) ." / ". topic_name($node->tid) ."</TD><TD>". node_status($node, $node->status) ."</TD><TD>". format_username($node->userid) ."</TD><TD>". format_date($node->timestamp, "small") ."</TD><TD><A HREF=\"admin.php?mod=moderate&type=node&op=edit&id=$node->nid\">edit $node->type</A></TD></TR>\n"; + $output .= " <TR><TD><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A></TD><TD>". category_name($node->cid) ." / ". topic_name($node->tid) ."</TD><TD>". node_status($node->status) ."</TD><TD>". format_username($node->userid) ."</TD><TD>". format_date($node->timestamp, "small") ."</TD><TD><A HREF=\"admin.php?mod=moderate&type=node&op=edit&id=$node->nid\">edit $node->type</A></TD></TR>\n"; $r2 = db_query("SELECT c.*, u.userid FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.lid = '$node->nid' ORDER BY c.timestamp DESC"); while ($comment = db_fetch_object($r2)) { |