From e3ec7995a70c79bb199ce51429cd24babe8aac58 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Fri, 16 Jun 2006 02:59:37 +0000 Subject: [PATCH] merged, centering of tabs on blog page issue --- blog/header.php | 8 ++++++++ blog/index.php | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/blog/header.php b/blog/header.php index 43dc91be13..b3f29c74ea 100755 --- a/blog/header.php +++ b/blog/header.php @@ -186,6 +186,14 @@ if ($ME == $CFG->wwwroot.'/blog/edit.php') { /// We are in edit mode, print the } /// close switch +// prints the tabs +$currenttab = 'blogs'; +$user = $USER; +if (!$course) { + $course = get_record('course','id',optional_param('courseid', SITEID, PARAM_INT)); +} +require_once($CFG->dirroot .'/user/tabs.php'); + $editing = false; if ($PAGE->user_allowed_editing()) { $editing = $PAGE->user_is_editing(); diff --git a/blog/index.php b/blog/index.php index 1dbb28bff1..ebae25a4a3 100755 --- a/blog/index.php +++ b/blog/index.php @@ -139,14 +139,6 @@ if ($limit == 'none') { include($CFG->dirroot .'/blog/header.php'); -// prints the tabs -$currenttab = 'blogs'; -$user = $USER; -if (!$course) { - $course = get_record('course','id',optional_param('courseid', SITEID, PARAM_INT)); -} -require_once($CFG->dirroot .'/user/tabs.php'); - $blogpage = optional_param('blogpage',0,PARAM_INT); blog_print_html_formatted_entries($userid, $postid, $limit, ($blogpage * $limit) ,$filtertype, $filterselect, $tagid, $tag, $filtertype, $filterselect); -- 2.39.5