MDL-33315 blog: fixed up the navigation for when youre viewing another users blog
authorAndrew Davis <andrew@moodle.com>
Thu, 24 May 2012 02:40:59 +0000 (09:40 +0700)
committerAndrew Davis <andrew@moodle.com>
Thu, 24 May 2012 02:40:59 +0000 (09:40 +0700)
blog/index.php

index 8d28dbc..77476a9 100644 (file)
@@ -192,6 +192,8 @@ if (!empty($userid)) {
         if (!blog_user_can_view_user_entry($userid)) {
             print_error('cannotviewcourseblog', 'blog');
         }
+
+        $PAGE->navigation->extend_for_user($user);
     }
 }