X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fresourceloader%2FResourceLoaderModule.php;h=a6ec72a99f20bff68fe8cd83664f5f0e81adc7af;hb=75f250ec55448853b13ad708fd777ec3e23b1ab8;hp=0104ec33b90a47592335eb218225d4b6f3053c04;hpb=395b9c81ffcc11b6a564a26418dad990e1a708d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 0104ec33b9..a6ec72a99f 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -26,6 +26,7 @@ use MediaWiki\MediaWikiServices; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; +use Wikimedia\RelPath; use Wikimedia\ScopedCallback; /** @@ -106,7 +107,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { * Set this module's name. This is called by ResourceLoader::register() * when registering the module. Other code should not call this. * - * @param string $name Name + * @param string $name */ public function setName( $name ) { $this->name = $name; @@ -527,7 +528,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { public static function getRelativePaths( array $filePaths ) { global $IP; return array_map( function ( $path ) use ( $IP ) { - return RelPath\getRelativePath( $path, $IP ); + return RelPath::getRelativePath( $path, $IP ); }, $filePaths ); } @@ -541,7 +542,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { public static function expandRelativePaths( array $filePaths ) { global $IP; return array_map( function ( $path ) use ( $IP ) { - return RelPath\joinPath( $IP, $path ); + return RelPath::joinPath( $IP, $path ); }, $filePaths ); } @@ -928,7 +929,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { * Get this module's last modification timestamp for a given context. * * @deprecated since 1.26 Use getDefinitionSummary() instead - * @param ResourceLoaderContext $context Context object + * @param ResourceLoaderContext $context * @return int|null UNIX timestamp */ public function getModifiedTime( ResourceLoaderContext $context ) {