mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
Merge "Parse messages in hook onSkinTemplateNavigationUniversal"
This commit is contained in:
commit
31a5ab4e7b
|
@ -1030,9 +1030,6 @@ class EchoHooks implements RecentChange_saveHook {
|
|||
$msgFormattedCount = EchoNotificationController::formatNotificationCount( $msgCount );
|
||||
$alertFormattedCount = EchoNotificationController::formatNotificationCount( $alertCount );
|
||||
|
||||
$msgText = wfMessage( 'echo-notification-notice', $msgCount );
|
||||
$alertText = wfMessage( 'echo-notification-alert', $alertCount );
|
||||
|
||||
$url = SpecialPage::getTitleFor( 'Notifications' )->getLocalURL();
|
||||
|
||||
// HACK: inverted icons only work in the "MediaWiki" OOUI theme
|
||||
|
@ -1113,7 +1110,7 @@ class EchoHooks implements RecentChange_saveHook {
|
|||
|
||||
$links['notifications']['notifications-alert'] = [
|
||||
'href' => $url,
|
||||
'text' => $alertText,
|
||||
'text' => $skinTemplate->msg( 'echo-notification-alert', $alertCount )->text(),
|
||||
'active' => ( $url == $title->getLocalURL() ),
|
||||
'link-class' => $alertLinkClasses,
|
||||
'data' => [
|
||||
|
@ -1126,7 +1123,7 @@ class EchoHooks implements RecentChange_saveHook {
|
|||
|
||||
$links['notifications']['notifications-notice'] = [
|
||||
'href' => $url,
|
||||
'text' => $msgText,
|
||||
'text' => $skinTemplate->msg( 'echo-notification-notice', $msgCount )->text(),
|
||||
'active' => ( $url == $title->getLocalURL() ),
|
||||
'link-class' => $msgLinkClasses,
|
||||
'data' => [
|
||||
|
|
Loading…
Reference in a new issue