summaryrefslogtreecommitdiff
path: root/modules/blog.module
diff options
context:
space:
mode:
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);
}