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;
69class_alias( ExtensionInfo::class,
'MediaWiki\\ExtensionInfo' );
if(!defined('MW_SETUP_CALLBACK'))
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.