summaryrefslogtreecommitdiff
path: root/modules/blog.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-02 19:36:03 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-02 19:36:03 +0000
commitcd334c1364badeab2668d216fafab1d653b3e6e9 (patch)
treee06c70ee7ed4bed1d5588a513d39afb1a8e53ab5 /modules/blog.module
parenta4b5005640228b8f5cec843e46c152080f9ff523 (diff)
downloadbrdo-cd334c1364badeab2668d216fafab1d653b3e6e9.tar.gz
brdo-cd334c1364badeab2668d216fafab1d653b3e6e9.tar.bz2
- re-adding the module.php?mod=blog&node=USER.
Diffstat (limited to 'modules/blog.module')
-rw-r--r--modules/blog.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/blog.module b/modules/blog.module
index 09d588b8d..ad6368cca 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -250,7 +250,7 @@ function blog_form(&$node, &$help, &$error) {
function blog_page() {
- global $theme, $id, $op, $date, $all;
+ global $theme, $id, $op, $date, $all, $name;
if (user_access("access content")) {
switch ($op) {
@@ -264,6 +264,10 @@ function blog_page() {
break;
default:
$theme->header();
+ if ($name) {
+ $user = user_load(array("name" => $name));
+ $id = $user->uid;
+ }
if ($id) {
blog_page_user($id, $date, $all);
}