- blog.module:

+ another bugfix
3-00
Dries Buytaert 2001-07-14 15:09:56 +00:00
parent 01a8b5edad
commit 8f0c3fb52e
2 changed files with 8 additions and 4 deletions

View File

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

View File

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