Fix display of user messages orange bar

The icon in Vector is copied across when Vector is loaded before
Echo in LocalSettings.php

Change-Id: Ida8c78e5c723f9628928f0293f43b2d67616888f
This commit is contained in:
jdlrobson 2021-07-22 13:19:14 -07:00
parent e8430bd44a
commit b4ec1eda88

View file

@ -1090,6 +1090,9 @@ class EchoHooks implements RecentChange_saveHook {
[
// Hardcode id, which is needed to dismiss the talk alert notification
'id' => 'pt-talk-alert',
// If Vector hook ran anicon will have been copied to the link class.
// We must reset it.
'link-class' => [],
'text' => $skinTemplate->msg( 'echo-new-messages' )->text(),
'class' => [ 'mw-echo-alert' ],
]