diff --git a/includes/Setup.php b/includes/Setup.php
index 04a8459965deb..905a1d10a6d1b 100644
--- a/includes/Setup.php
+++ b/includes/Setup.php
@@ -514,12 +514,12 @@
$ps_validation = Profiler::instance()->scopedProfileIn( $fname . '-validation' );
// T48998: Bail out early if $wgArticlePath is non-absolute
-if ( !preg_match( '/^https?:\/\/|\//', $wgArticlePath ) ) {
+if ( !preg_match( '/^(https?:\/\/|\/)/', $wgArticlePath ) ) {
throw new FatalError(
- 'If you use a relative URL on $wgArticlePath, it must start ' .
- 'with a slash (/).
See ' .
+ 'If you use a relative URL for $wgArticlePath, it must start ' .
+ 'with a slash (/
).
See ' .
'' .
- 'https://www.mediawiki.org/wiki/Manual:$wgArticlePath'
+ 'https://www.mediawiki.org/wiki/Manual:$wgArticlePath.'
);
}