diff options
author | Daimona Eaytoy <daimona.wiki@gmail.com> | 2023-06-09 00:30:57 +0200 |
---|---|---|
committer | Daimona Eaytoy <daimona.wiki@gmail.com> | 2023-06-09 02:07:08 +0200 |
commit | 8adf1bfb933b2b450aaebb46f3263838c0697ff6 (patch) | |
tree | 508f30906d82939451447ca48ad46a09cc42d4d2 /includes/media/ThumbnailImage.php | |
parent | 0d29958cc1f67654cfb5df791bc95225a976f4a4 (diff) | |
download | mediawikicore-8adf1bfb933b2b450aaebb46f3263838c0697ff6.tar.gz mediawikicore-8adf1bfb933b2b450aaebb46f3263838c0697ff6.zip |
Replace some more usages of deprecated MWException
Bug: T328220
Change-Id: I3c36835fbd90acc301731e2b33ae4815cd4b0cc5
Diffstat (limited to 'includes/media/ThumbnailImage.php')
-rw-r--r-- | includes/media/ThumbnailImage.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/media/ThumbnailImage.php b/includes/media/ThumbnailImage.php index 99011f9a1a03..d1f81fc06c6d 100644 --- a/includes/media/ThumbnailImage.php +++ b/includes/media/ThumbnailImage.php @@ -115,7 +115,6 @@ class ThumbnailImage extends MediaTransformOutput { * For images, desc-link and file-link are implemented as a click-through. For * sounds and videos, they may be displayed in other ways. * - * @throws MWException * @return string */ public function toHtml( $options = [] ) { @@ -125,7 +124,7 @@ class ThumbnailImage extends MediaTransformOutput { $enableLegacyMediaDOM = $mainConfig->get( MainConfigNames::ParserEnableLegacyMediaDOM ); if ( func_num_args() === 2 ) { - throw new MWException( __METHOD__ . ' called in the old style' ); + throw new BadMethodCallException( __METHOD__ . ' called in the old style' ); } $query = $options['desc-query'] ?? ''; |