Skip to content

Commit 7815f41

Browse files
committed
add localhost OR to regex
1 parent 379383d commit 7815f41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist-persist/wbstack/src/Settings/LocalSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
require_once __DIR__ . '/Localization.php';
2525

2626
// Define some conditions to switch behaviour on
27-
$wwDomainSaysLocal = preg_match("/(\w\.wbaas\.dev)/", $_SERVER['SERVER_NAME']) === 1;
27+
$wwDomainSaysLocal = preg_match("/\w\.(localhost|wbaas\.dev)/", $_SERVER['SERVER_NAME']) === 1;
2828
$wwDomainIsMaintenance = $wikiInfo->requestDomain === 'maintenance';
2929
$wwIsPhpUnit = isset( $maintClass ) && $maintClass === 'PHPUnitMaintClass';
3030
$wwIsLocalisationRebuild = basename( $_SERVER['SCRIPT_NAME'] ) === 'rebuildLocalisationCache.php';

dist/wbstack/src/Settings/LocalSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
require_once __DIR__ . '/Localization.php';
2525

2626
// Define some conditions to switch behaviour on
27-
$wwDomainSaysLocal = preg_match("/(\w\.wbaas\.dev)/", $_SERVER['SERVER_NAME']) === 1;
27+
$wwDomainSaysLocal = preg_match("/\w\.(localhost|wbaas\.dev)/", $_SERVER['SERVER_NAME']) === 1;
2828
$wwDomainIsMaintenance = $wikiInfo->requestDomain === 'maintenance';
2929
$wwIsPhpUnit = isset( $maintClass ) && $maintClass === 'PHPUnitMaintClass';
3030
$wwIsLocalisationRebuild = basename( $_SERVER['SCRIPT_NAME'] ) === 'rebuildLocalisationCache.php';

0 commit comments

Comments
 (0)