X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebStart.php;h=f840a5ed784c25dceea58e43c0c51dc4d71f2b6a;hb=8a4524600946b1785b4b954479e94c381a0613b7;hp=ead6d77ae62979cb2257647cf5c495c1fb625d67;hpb=b65669ff7adbbde55872a8ddd93214a9e1df75c6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index ead6d77ae6..f840a5ed78 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -114,9 +114,14 @@ wfProfileIn( 'WebStart.php-conf' ); # Load default settings require_once "$IP/includes/DefaultSettings.php"; +# Load composer's autoloader if present +if ( is_readable( "$IP/vendor/autoload.php" ) ) { + require_once "$IP/vendor/autoload.php"; +} + if ( defined( 'MW_CONFIG_CALLBACK' ) ) { # Use a callback function to configure MediaWiki - MWFunction::call( MW_CONFIG_CALLBACK ); + call_user_func( MW_CONFIG_CALLBACK ); } else { if ( !defined( 'MW_CONFIG_FILE' ) ) { define( 'MW_CONFIG_FILE', "$IP/LocalSettings.php" ); @@ -134,10 +139,6 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) { require_once MW_CONFIG_FILE; } -if ( $wgEnableSelenium ) { - require_once "$IP/includes/SeleniumWebSettings.php"; -} - wfProfileOut( 'WebStart.php-conf' ); wfProfileIn( 'WebStart.php-ob_start' );