mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 01:10:07 +00:00
Simplify linking to fragments of Special:Preferences
Change-Id: I0950000edd402020a1e0179b8e4829640ad33835
This commit is contained in:
parent
053d0c75e0
commit
f837f5663e
|
@ -25,7 +25,7 @@ class SpecialNotifications extends SpecialPage {
|
|||
$this->addHelpLink( 'Help:Notifications/Special:Notifications' );
|
||||
|
||||
$out->addJsConfigVars( 'wgNotificationsSpecialPageLinks', [
|
||||
'preferences' => SpecialPage::getTitleFor( 'Preferences' )->getLinkURL() . '#mw-prefsection-echo',
|
||||
'preferences' => SpecialPage::getTitleFor( 'Preferences', false, 'mw-prefsection-echo' )->getLinkURL(),
|
||||
] );
|
||||
|
||||
$user = $this->getUser();
|
||||
|
@ -245,7 +245,7 @@ class SpecialNotifications extends SpecialPage {
|
|||
$subtitleLinks[] = Html::element(
|
||||
'a',
|
||||
[
|
||||
'href' => SpecialPage::getTitleFor( 'Preferences' )->getLinkURL() . '#mw-prefsection-echo',
|
||||
'href' => SpecialPage::getTitleFor( 'Preferences', false, 'mw-prefsection-echo' )->getLinkURL(),
|
||||
'id' => 'mw-echo-pref-link',
|
||||
'class' => 'mw-echo-special-header-link',
|
||||
'title' => $this->msg( 'preferences' )->text()
|
||||
|
|
Loading…
Reference in a new issue