Commit 8f0c3fb5 authored by Dries's avatar Dries
Browse files

- blog.module:

   + another bugfix
parent 01a8b5ed
...@@ -208,7 +208,6 @@ function blog_edit_history($nid) { ...@@ -208,7 +208,6 @@ function blog_edit_history($nid) {
function blog_page() { function blog_page() {
global $theme, $op, $name, $date; global $theme, $op, $name, $date;
$theme->header();
if (user_access("access blogs")) { if (user_access("access blogs")) {
switch ($op) { switch ($op) {
...@@ -221,19 +220,22 @@ function blog_page() { ...@@ -221,19 +220,22 @@ function blog_page() {
} }
break; break;
default: default:
$theme->header();
if ($name) { if ($name) {
blog_page_user($name, $date); blog_page_user($name, $date);
} }
else { else {
blog_page_last(); blog_page_last();
} }
$theme->footer();
} }
} }
else { else {
$theme->header();
$theme->box(t("Access denied"), message_access()); $theme->box(t("Access denied"), message_access());
$theme->footer();
} }
$theme->footer();
} }
function blog_user() { function blog_user() {
......
...@@ -208,7 +208,6 @@ function blog_edit_history($nid) { ...@@ -208,7 +208,6 @@ function blog_edit_history($nid) {
function blog_page() { function blog_page() {
global $theme, $op, $name, $date; global $theme, $op, $name, $date;
$theme->header();
if (user_access("access blogs")) { if (user_access("access blogs")) {
switch ($op) { switch ($op) {
...@@ -221,19 +220,22 @@ function blog_page() { ...@@ -221,19 +220,22 @@ function blog_page() {
} }
break; break;
default: default:
$theme->header();
if ($name) { if ($name) {
blog_page_user($name, $date); blog_page_user($name, $date);
} }
else { else {
blog_page_last(); blog_page_last();
} }
$theme->footer();
} }
} }
else { else {
$theme->header();
$theme->box(t("Access denied"), message_access()); $theme->box(t("Access denied"), message_access());
$theme->footer();
} }
$theme->footer();
} }
function blog_user() { function blog_user() {
......
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