From a1e6728a46a8f00cc2a1b418fa2b5bb2143d0819 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 11 Feb 2007 09:30:51 +0000 Subject: - Patch #113603 by chx: first crack at re-implementing tabs. --- modules/blog/blog.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/blog') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 5b853ddbe..ffdeeedec 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -105,6 +105,9 @@ function blog_feed_last() { * Menu callback; displays a Drupal page containing recent blog entries. */ function blog_page($a = NULL, $b = NULL) { + if (is_object($a)) { + $a = $a->uid; + } if (is_numeric($a)) { // $a is a user ID if ($b == 'feed') { @@ -256,7 +259,7 @@ function blog_menu() { 'access arguments' => array('access content'), 'type' => MENU_SUGGESTED_ITEM, ); - $items['blog/%'] = array( + $items['blog/%user_current'] = array( 'title' => t('My blog'), 'page arguments' => array(1), 'access arguments' => array('edit own blog'), -- cgit v1.2.3