Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F585343
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/includes/Setup.php b/includes/Setup.php
index 3f30d537dde..c71f54978ac 100644
--- a/includes/Setup.php
+++ b/includes/Setup.php
@@ -133,15 +133,17 @@ require_once MW_INSTALL_PATH . '/includes/Defines.php';
// Assert that composer dependencies were successfully loaded
if ( !interface_exists( LoggerInterface::class ) ) {
$message = (
- 'MediaWiki requires the <a href="https://github.com/php-fig/log">PSR-3 logging ' .
+ '<strong>Error:</strong> MediaWiki requires the <a href="https://github.com/php-fig/log">PSR-3 logging ' .
"library</a> to be present. This library is not embedded directly in MediaWiki's " .
"git repository and must be installed separately by the end user.\n\n" .
'Please see the <a href="https://www.mediawiki.org/wiki/Download_from_Git' .
'#Fetch_external_libraries">instructions for installing libraries</a> on mediawiki.org ' .
'for help on installing the required components.'
);
+ http_response_code( 500 );
echo $message;
- trigger_error( $message, E_USER_ERROR );
+ error_log( $message );
+ exit( 1 );
}
// Deprecated global variable for backwards-compatibility.
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:32 AM (1 d, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227748
Default Alt Text
(1 KB)
Attached To
Mode
rMW mediawiki
Attached
Detach File
Event Timeline
Log In to Comment