UserEmailSummaryHandler: use $notice->getLocalUrl(), not getUrl()
getUrl() doesn't work on all notices anymore.
This commit is contained in:
parent
bf0f22744d
commit
2d7804b88f
@ -173,7 +173,7 @@ class UserEmailSummaryHandler extends QueueHandler
|
|||||||
$out->text(' ');
|
$out->text(' ');
|
||||||
$out->raw($notice->rendered);
|
$out->raw($notice->rendered);
|
||||||
$out->elementStart('div', array('style' => 'font-size: 0.8em; padding-top: 4px;'));
|
$out->elementStart('div', array('style' => 'font-size: 0.8em; padding-top: 4px;'));
|
||||||
$noticeurl = $notice->getUrl();
|
$noticeurl = $notice->getLocalUrl();
|
||||||
// above should always return an URL
|
// above should always return an URL
|
||||||
assert(!empty($noticeurl));
|
assert(!empty($noticeurl));
|
||||||
$out->elementStart('a', array('rel' => 'bookmark',
|
$out->elementStart('a', array('rel' => 'bookmark',
|
||||||
|
Loading…
Reference in New Issue
Block a user