diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-13 19:25:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-13 19:25:37 +0000 |
commit | eee72bfa9509e99be79f9c92e6330bc00ea498dd (patch) | |
tree | 30c11ee855f1025325e617aeefa6ee307a957a2a /modules/node.module | |
parent | 75685d8c3d21eb8ac93e03b9f202aefdedaabe58 (diff) | |
download | brdo-eee72bfa9509e99be79f9c92e6330bc00ea498dd.tar.gz brdo-eee72bfa9509e99be79f9c92e6330bc00ea498dd.tar.bz2 |
- Patch 4859: new drupal_unpack() consolidates duplicate code and makes it
easy to show avatars next to nodes and comments. Patch by Moshe. As a
showcase, maybe Xtemplate should have an option to enable/disable avatars?
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module index 770661cc1..7f1b2a532 100644 --- a/modules/node.module +++ b/modules/node.module @@ -263,10 +263,11 @@ function node_load($conditions, $revision = -1) { ** Retrieve the node: */ - $node = db_fetch_object(db_query("SELECT n.*, u.uid, u.name FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE ". implode(" AND ", $cond))); + $node = db_fetch_object(db_query("SELECT n.*, u.uid, u.name, u.data FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE ". implode(" AND ", $cond))); + $node = drupal_unpack($node); /* - ** Unserialize the revisions field: + ** Unserialize the revisions and user data fields: */ if ($node->revisions) { |