Merged in bugfix/MAPG-196-fix-remote-static-root-detection (pull request #181)
MAPG-196 fix regex that recognizes remote static root
This commit is contained in:
commit
cc8148fcf9
@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#198231">
|
||||
<title><?= $_ENV['APP_NAME'] ?></title>
|
||||
<?php if (preg_match('/^http(s)?/', $_ENV['STATIC_ROOT']) === 1): ?>
|
||||
<?php if (preg_match('/^(http(s)?:)?\/\//', $_ENV['STATIC_ROOT']) === 1): ?>
|
||||
<link href="<?= $_ENV['STATIC_ROOT'] ?>" rel="preconnect">
|
||||
<?php endif; ?>
|
||||
<link href="https://fonts.gstatic.com" rel="preconnect">
|
||||
|
Loading…
Reference in New Issue
Block a user