From 0ac7f802bb7bba882a665342195da37edf6a9123 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 13 Mar 2012 15:33:58 +0000 Subject: [PATCH] have PM link link directly to the section --- contrib/pm/main.php | 2 +- contrib/pm/theme.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pm/main.php b/contrib/pm/main.php index 29e4b941..b1b6f81b 100644 --- a/contrib/pm/main.php +++ b/contrib/pm/main.php @@ -82,7 +82,7 @@ class PrivMsg extends Extension { if(!$user->is_anonymous()) { $count = $this->count_pms($user); $h_count = $count > 0 ? " ($count)" : ""; - $event->add_link("Private Messages$h_count", make_link("user")); + $event->add_link("Private Messages$h_count", make_link("user#private-messages")); } } diff --git a/contrib/pm/theme.php b/contrib/pm/theme.php index 449fdaa3..0e2805b8 100644 --- a/contrib/pm/theme.php +++ b/contrib/pm/theme.php @@ -31,7 +31,7 @@ class PrivMsgTheme extends Themelet { "; - $page->add_block(new Block("Private Messages", $html, "main", 10)); + $page->add_block(new Block("Private Messages", $html, "main", 10, "private-messages")); } public function display_composer(Page $page, User $from, User $to, $subject="") {