]> git.mjollnir.org Git - moodle.git/commitdiff
merged, centering of tabs on blog page issue
authortoyomoyo <toyomoyo>
Fri, 16 Jun 2006 02:59:37 +0000 (02:59 +0000)
committertoyomoyo <toyomoyo>
Fri, 16 Jun 2006 02:59:37 +0000 (02:59 +0000)
blog/header.php
blog/index.php

index 43dc91be13c90fb7fcc993e5fef58008bc602f27..b3f29c74eacde8c41f2d0175126bf3f74f744623 100755 (executable)
@@ -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();
index 1dbb28bff1affbc6b5179e6cea10232c9c8804ad..ebae25a4a365e4928596e8f657015e653dcafa40 100755 (executable)
@@ -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);