Index: trunk/extensions/LiquidThreads/classes/NewMessagesController.php |
— | — | @@ -237,7 +237,9 @@ |
238 | 238 | ); |
239 | 239 | |
240 | 240 | // Set up one-time data. |
241 | | - $permalink = LqtView::permalinkUrl( $t ); |
| 241 | + $link_title = clone $t->article()->getTitle(); |
| 242 | + $link_title->setFragment( '#'.$t->getAnchorName() ); |
| 243 | + $permalink = $link_title->getFullURL(); |
242 | 244 | $talkPage = $t->article()->getTitle()->getPrefixedText(); |
243 | 245 | $from = new MailAddress( $wgPasswordSender, 'WikiAdmin' ); |
244 | 246 | $threadSubject = $t->subject(); |