X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FCoreParserFunctions.php;h=7fece003981fa2eb2c2125d59732507df7f69ae5;hb=8ffabe23a195e47af2a117a2a917a280b3459255;hp=0c745c9f18497efd77ed16dfbb7ae9f06b53b89c;hpb=8c59f43b3342292a464db5df492e478b29a64aa5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 0c745c9f18..7fece00398 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -1030,7 +1030,7 @@ class CoreParserFunctions { * @return array|string */ public static function filepath( $parser, $name = '', $argA = '', $argB = '' ) { - $file = wfFindFile( $name ); + $file = MediaWikiServices::getInstance()->getRepoGroup()->findFile( $name ); if ( $argA == 'nowiki' ) { // {{filepath: | option [| size] }}