Commit cd334c13 authored by Kjartan's avatar Kjartan
Browse files

- re-adding the module.php?mod=blog&node=USER.

parent a4b50056
...@@ -250,7 +250,7 @@ function blog_form(&$node, &$help, &$error) { ...@@ -250,7 +250,7 @@ function blog_form(&$node, &$help, &$error) {
function blog_page() { function blog_page() {
global $theme, $id, $op, $date, $all; global $theme, $id, $op, $date, $all, $name;
if (user_access("access content")) { if (user_access("access content")) {
switch ($op) { switch ($op) {
...@@ -264,6 +264,10 @@ function blog_page() { ...@@ -264,6 +264,10 @@ function blog_page() {
break; break;
default: default:
$theme->header(); $theme->header();
if ($name) {
$user = user_load(array("name" => $name));
$id = $user->uid;
}
if ($id) { if ($id) {
blog_page_user($id, $date, $all); blog_page_user($id, $date, $all);
} }
......
...@@ -250,7 +250,7 @@ function blog_form(&$node, &$help, &$error) { ...@@ -250,7 +250,7 @@ function blog_form(&$node, &$help, &$error) {
function blog_page() { function blog_page() {
global $theme, $id, $op, $date, $all; global $theme, $id, $op, $date, $all, $name;
if (user_access("access content")) { if (user_access("access content")) {
switch ($op) { switch ($op) {
...@@ -264,6 +264,10 @@ function blog_page() { ...@@ -264,6 +264,10 @@ function blog_page() {
break; break;
default: default:
$theme->header(); $theme->header();
if ($name) {
$user = user_load(array("name" => $name));
$id = $user->uid;
}
if ($id) { if ($id) {
blog_page_user($id, $date, $all); blog_page_user($id, $date, $all);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment