diff options
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 5 |
1 files changed, 4 insertions, 1 deletions
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'), |