X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPHPVersionCheck.php;h=41e88c29d815478544ec0aaa8483b184acc2b61d;hb=88a9b93787d3d8258df3333ef676e42af8f50ca9;hp=9dec95084e55dec66651950ad6dd04743bdd56e8;hpb=d5d85f2db20896b2c66a7a809fbe9a1049d73856;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PHPVersionCheck.php b/includes/PHPVersionCheck.php index 9dec95084e..41e88c29d8 100644 --- a/includes/PHPVersionCheck.php +++ b/includes/PHPVersionCheck.php @@ -30,7 +30,7 @@ * version are hardcoded here */ function wfEntryPointCheck( $entryPoint ) { - $mwVersion = '1.26'; + $mwVersion = '1.27'; $minimumVersionPHP = '5.3.3'; $phpVersion = PHP_VERSION; @@ -40,7 +40,9 @@ function wfEntryPointCheck( $entryPoint ) { wfPHPVersionError( $entryPoint, $mwVersion, $minimumVersionPHP, $phpVersion ); } + // @codingStandardsIgnoreStart MediaWiki.Usage.DirUsage.FunctionFound if ( !file_exists( dirname( __FILE__ ) . '/../vendor/autoload.php' ) ) { + // @codingStandardsIgnoreEnd wfMissingVendorError( $entryPoint, $mwVersion ); } } @@ -180,7 +182,7 @@ HTML; * @param string $mwVersion See wfGenericError */ function wfMissingVendorError( $type, $mwVersion ) { - $shortText = "Installing some external dependencies (e.g. via composer) is also required."; + $shortText = "Installing some external dependencies (e.g. via composer) is required."; $longText = "Error: You are missing some external dependencies. \n" . "MediaWiki now also has some external dependencies that need to be installed\n" @@ -188,12 +190,14 @@ function wfMissingVendorError( $type, $mwVersion ) { . "https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries\n" . "for help on installing the required components."; + // @codingStandardsIgnoreStart Generic.Files.LineLength $longHtml = <<mediawiki.org - for help on installing the required components. + MediaWiki now also has some external dependencies that need to be installed via + composer or from a separate git repo. Please see + mediawiki.org + for help on installing the required components. HTML; + // @codingStandardsIgnoreEnd wfGenericError( $type, $mwVersion, 'External dependencies', $shortText, $longText, $longHtml ); }