have PM link link directly to the section

This commit is contained in:
Shish 2012-03-13 15:33:58 +00:00
parent d6227ef1b3
commit 0ac7f802bb
2 changed files with 2 additions and 2 deletions

View file

@ -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"));
}
}

View file

@ -31,7 +31,7 @@ class PrivMsgTheme extends Themelet {
</tbody>
</table>
";
$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="") {