diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-05-24 19:45:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-05-24 19:45:11 +0000 |
commit | 9281831998fd71f4791904c2c3b419e0d4e799ce (patch) | |
tree | 0a3ea084abf75cfd755850ea01a40dfca3cb64c7 /modules/blog/blog.module | |
parent | 750043b86027cbf3c72f0181da9d22fdd924ebfe (diff) | |
download | brdo-9281831998fd71f4791904c2c3b419e0d4e799ce.tar.gz brdo-9281831998fd71f4791904c2c3b419e0d4e799ce.tar.bz2 |
- Patch #7959 by walkah: the 'blog it' link used the wrong SQL tables.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index a821d474f..d9ec63463 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -204,7 +204,7 @@ function blog_form(&$node, &$error) { $node->body = '<i>'. $blog->body .'</i> ['. l($blog->name, "node/view/$nid") .']'; } - if ($iid && $item = db_fetch_object(db_query('SELECT i.*, f.title as ftitle, f.link as flink FROM {item} i, {feed} f WHERE i.iid = %d AND i.fid = f.fid', $iid))) { + if ($iid && $item = db_fetch_object(db_query('SELECT i.*, f.title as ftitle, f.link as flink FROM {aggregator_item} i, {aggregator_feed} f WHERE i.iid = %d AND i.fid = f.fid', $iid))) { $node->title = $item->title; $node->body = "<a href=\"$item->link\">$item->title</a> - <i>". check_output($item->description) ."</i> [<a href=\"$item->flink\">$item->ftitle</a>]\n"; } |