Skip to content

Commit

Permalink
Fix toast notifications (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentIsai authored Jan 2, 2024
1 parent 496b418 commit 4e4ef83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/RequestWiki/RequestWikiRequestViewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,6 @@ protected function submitForm(
)
);

return true;
return false;
}
}
3 changes: 3 additions & 0 deletions includes/RequestWiki/SpecialRequestWiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public function execute( $par ) {

$this->checkExecutePermissions( $this->getUser() );

$out->addModules( [ 'mediawiki.special.userrights' ] );
$out->addModuleStyles( 'mediawiki.notification.convertmessagebox.styles' );

$out->addWikiMsg( 'requestwiki-header' );

$form = $this->getForm();
Expand Down
1 change: 1 addition & 0 deletions includes/RequestWiki/SpecialRequestWikiQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ private function lookupRequest( $par ) {

$out->addModuleStyles( [ 'ext.createwiki.oouiform.styles' ] );
$out->addModuleStyles( [ 'oojs-ui-widgets.styles' ] );
$out->addModules( [ 'mediawiki.special.userrights' ] );

$requestViewer = new RequestWikiRequestViewer( $this->hookRunner );
$htmlForm = $requestViewer->getForm( $par, $this->getContext() );
Expand Down

0 comments on commit 4e4ef83

Please sign in to comment.