X-Git-Url: https://git.heureux-cyclage.org/index.php?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=f8b0255cc872542bc9c6e6cb2aab54a063242af1;hb=b8da5c83743ea31c6f73c063508384f114748537;hp=b3ccc5675aba3097029f368839c6ca454b996957;hpb=a3b1ef7c21ba9af94f611f6ca1d64e75710db176;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index b3ccc5675a..f8b0255cc8 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -545,7 +545,7 @@ function wfAppendQuery( $url, $query ) { * @param string $url Either fully-qualified or a local path + query * @param string $defaultProto One of the PROTO_* constants. Determines the * protocol to use if $url or $wgServer is protocol-relative - * @return string Fully-qualified URL, current-path-relative URL or false if + * @return string|false Fully-qualified URL, current-path-relative URL or false if * no valid URL can be constructed */ function wfExpandUrl( $url, $defaultProto = PROTO_CURRENT ) { @@ -3518,7 +3518,7 @@ function wfIsBadImage( $name, $contextTitle = false, $blacklist = null ) { # Run the extension hook $bad = false; if ( !Hooks::run( 'BadImage', [ $name, &$bad ] ) ) { - return $bad; + return (bool)$bad; } $cache = ObjectCache::getLocalServerInstance( 'hash' );