UserEmailSummaryHandler: use $notice->getLocalUrl(), not getUrl()

getUrl() doesn't work on all notices anymore.
This commit is contained in:
Joshua Judson Rosen 2014-11-23 23:05:13 -05:00
parent bf0f22744d
commit 2d7804b88f
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class UserEmailSummaryHandler extends QueueHandler
$out->text(' ');
$out->raw($notice->rendered);
$out->elementStart('div', array('style' => 'font-size: 0.8em; padding-top: 4px;'));
$noticeurl = $notice->getUrl();
$noticeurl = $notice->getLocalUrl();
// above should always return an URL
assert(!empty($noticeurl));
$out->elementStart('a', array('rel' => 'bookmark',