Skip to content

Commit

Permalink
Use different submit button text for editing resource
Browse files Browse the repository at this point in the history
  • Loading branch information
iMarbot authored Apr 19, 2024
1 parent 931e922 commit 909fd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SpecialPage/SpecialResourceLoaderArticles.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ private function editPage( $id ) {
];

$htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() );
$htmlForm->setSubmitText( $this->msg( 'resourceloaderarticles-add-page' )->text() );
$htmlForm->setSubmitText( $this->msg( 'resourceloaderarticles-edit-page' )->text() );
$htmlForm->setFormIdentifier( 'editPageCB' );
$htmlForm->setSubmitCallback( [ $this, 'editPageCB' ] );

Expand Down

0 comments on commit 909fd61

Please sign in to comment.