X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=a06d72100f2c346a152cb414d8a509d0871145ce;hb=af90485fc9020ae3c6c0fefde6158c5251405793;hp=b0057ebf9afa81073355db463dac5e667bd6c3c4;hpb=d2b5c86eac27b0ce60076502f195b1b37d762c60;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index b0057ebf9a..a06d72100f 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -582,7 +582,7 @@ function wfAppendQuery( $url, $query ) { * like "subdir/foo.html", etc. * * @param string $url Either fully-qualified or a local path + query - * @param string $defaultProto One of the PROTO_* constants. Determines the + * @param string|int|null $defaultProto One of the PROTO_* constants. Determines the * protocol to use if $url or $wgServer is protocol-relative * @return string|false Fully-qualified URL, current-path-relative URL or false if * no valid URL can be constructed @@ -2021,7 +2021,7 @@ function wfSuppressWarnings( $end = false ) { * Restore error level to previous value */ function wfRestoreWarnings() { - MediaWiki\suppressWarnings( true ); + MediaWiki\restoreWarnings(); } /**