Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Shashank Atreya <[email protected]>
  • Loading branch information
iMarbot and godarkrai authored Apr 22, 2024
1 parent c17340c commit cbb3a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SpecialPage/SpecialResourceLoaderArticles.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public function trimValueCB( $value ) {
/**
* @param string $value
* @param array $alldata
* @return bool|Message
* @return bool|string
*/
public function validatePageCB( $value, $alldata ) {
if (
Expand All @@ -352,7 +352,7 @@ public function validatePageCB( $value, $alldata ) {
)
) || ( $alldata[ 'Type' ] === 'script' && !( strlen( $value ) > 3 && substr( $value, -3 ) === '.js' ) )
) {
return $this->msg( 'resourceloaderarticles-error-page-invalid' );
return $this->msg( 'resourceloaderarticles-error-page-invalid' )->text();
}
return true;
}
Expand Down

0 comments on commit cbb3a2a

Please sign in to comment.