summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-02-11 09:30:51 +0000
committerDries Buytaert <dries@buytaert.net>2007-02-11 09:30:51 +0000
commita1e6728a46a8f00cc2a1b418fa2b5bb2143d0819 (patch)
treee4197a1dfae373bed86f5be32aa1c367841f3b98 /modules/blog
parent373a071fc4fcac1a4789c4d29568a04af8354ef3 (diff)
downloadbrdo-a1e6728a46a8f00cc2a1b418fa2b5bb2143d0819.tar.gz
brdo-a1e6728a46a8f00cc2a1b418fa2b5bb2143d0819.tar.bz2
- Patch #113603 by chx: first crack at re-implementing tabs.
Diffstat (limited to 'modules/blog')
-rw-r--r--modules/blog/blog.module5
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'),