have PM link link directly to the section
This commit is contained in:
parent
d6227ef1b3
commit
0ac7f802bb
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ class PrivMsg extends Extension {
|
||||||
if(!$user->is_anonymous()) {
|
if(!$user->is_anonymous()) {
|
||||||
$count = $this->count_pms($user);
|
$count = $this->count_pms($user);
|
||||||
$h_count = $count > 0 ? " ($count)" : "";
|
$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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ class PrivMsgTheme extends Themelet {
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</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="") {
|
public function display_composer(Page $page, User $from, User $to, $subject="") {
|
||||||
|
|
Reference in a new issue