25 foreach ( scandir( $dir ) as $file ) {
26 $fullPath = $dir . DIRECTORY_SEPARATOR . $file;
27 if ( preg_match(
'/^(AUTHORS|CREDITS)(\.txt|\.wiki|\.mediawiki)?$/', $file ) &&
28 is_readable( $fullPath ) &&
51 foreach ( scandir( $extDir ) as $file ) {
52 $fullPath = $extDir . DIRECTORY_SEPARATOR . $file;
54 if ( preg_match(
'/^([\w\.-]+)?(COPYING|LICENSE)(\.txt)?$/', $file ) &&
55 is_readable( $fullPath ) &&
58 $licenseFiles[] = $fullPath;
67class_alias( ExtensionInfo::class,
'MediaWiki\\ExtensionInfo' );
if(!defined('MW_SETUP_CALLBACK'))