diff options
Diffstat (limited to 'Echo/includes/special/SpecialNotificationsMarkRead.php')
-rw-r--r-- | Echo/includes/special/SpecialNotificationsMarkRead.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Echo/includes/special/SpecialNotificationsMarkRead.php b/Echo/includes/special/SpecialNotificationsMarkRead.php index 1fb873a8..bac4d8a8 100644 --- a/Echo/includes/special/SpecialNotificationsMarkRead.php +++ b/Echo/includes/special/SpecialNotificationsMarkRead.php @@ -103,7 +103,9 @@ class SpecialNotificationsMarkRead extends FormSpecialPage { // manually. $form->suppressDefaultSubmit(); - $form->setAction( $this->getPageTitle()->getLocalURL() ); + $pageTitle = $this->getPageTitle(); + $form->setTitle( $pageTitle ); + $form->setAction( $pageTitle->getLocalURL() ); $form->addButton( [ 'name' => 'submit', @@ -146,6 +148,6 @@ class SpecialNotificationsMarkRead extends FormSpecialPage { public function onSuccess() { $page = SpecialPage::getTitleFor( 'Notifications' ); - $this->getOutput()->redirect( $page->getFullUrl() ); + $this->getOutput()->redirect( $page->getFullURL() ); } } |