X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=1ac2f8389d7f41ad3437975f90f344d6ffc0d7a2;hp=b0a79e8d5c967f89773b1207303a9272d9366758;hb=9189db0c50cd4f755efc1d0ce061f6c04b236a40;hpb=1ae3ebe82482b9244d1d9078cc36702116133f84 diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index b0a79e8d5c..1ac2f8389d 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -24,10 +24,11 @@ if ( !defined( 'MEDIAWIKI' ) ) { die( "This file is part of MediaWiki, it is not a valid entry point" ); } +use MediaWiki\Linker\LinkTarget; use MediaWiki\Logger\LoggerFactory; +use MediaWiki\MediaWikiServices; use MediaWiki\ProcOpenError; use MediaWiki\Session\SessionManager; -use MediaWiki\MediaWikiServices; use MediaWiki\Shell\Shell; use Wikimedia\ScopedCallback; use Wikimedia\WrappedString; @@ -2050,7 +2051,7 @@ function wfMkdirParents( $dir, $mode = null, $caller = null ) { */ function wfRecursiveRemoveDir( $dir ) { wfDebug( __FUNCTION__ . "( $dir )\n" ); - // taken from https://secure.php.net/manual/en/function.rmdir.php#98622 + // taken from https://www.php.net/manual/en/function.rmdir.php#98622 if ( is_dir( $dir ) ) { $objects = scandir( $dir ); foreach ( $objects as $object ) { @@ -2136,7 +2137,7 @@ function wfStringToBool( $val ) { * @param string|string[] ...$args strings to escape and glue together, * or a single array of strings parameter * @return string - * @deprecated since 1.30 use MediaWiki\Shell::escape() + * @deprecated since 1.30 use MediaWiki\Shell\Shell::escape() */ function wfEscapeShellArg( ...$args ) { return Shell::escape( ...$args ); @@ -2670,7 +2671,7 @@ function wfGetLBFactory() { * Find a file. * Shortcut for RepoGroup::singleton()->findFile() * - * @param string|Title $title String or Title object + * @param string|LinkTarget $title String or LinkTarget object * @param array $options Associative array of options (see RepoGroup::findFile) * @return File|bool File, or false if the file does not exist */