X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FParser.php;h=dfd9602de3a554b0e7efefa5171e5ee9a65a90eb;hp=4e39537d8b5c1302abedd4ede0caccd58e9563ed;hb=5952d843079cbfc22b64e0b0266fe223d0929399;hpb=ec46c467874de0f1814955f1cba31398b9b56f04 diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 4e39537d8b..dfd9602de3 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3138,11 +3138,8 @@ class Parser { for ( $i = 0; $i < $argsLength; $i++ ) { $funcArgs[] = $args->item( $i ); } - try { - $result = $this->callParserFunction( $frame, $func, $funcArgs ); - } catch ( Exception $ex ) { - throw $ex; - } + + $result = $this->callParserFunction( $frame, $func, $funcArgs ); // Extract any forwarded flags if ( isset( $result['title'] ) ) { @@ -3692,8 +3689,10 @@ class Parser { * @param Title $title * @param array $options Array of options to RepoGroup::findFile * @return File|bool + * @deprecated since 1.32, use fetchFileAndTitle instead */ public function fetchFile( $title, $options = [] ) { + wfDeprecated( __METHOD__, '1.32' ); return $this->fetchFileAndTitle( $title, $options )[0]; }