Browse Source

Fix small logic mistake in getBaseUrl().

The empty string was never possible there ;).
pull/649/head
Dominik George 8 years ago
parent
commit
eedc58f8bb
No known key found for this signature in database GPG Key ID: B79A3C16A0C4F296
  1. 2
      src/Movim/Bootstrap.php

2
src/Movim/Bootstrap.php

@ -177,7 +177,7 @@ class Bootstrap
$uri = 'https://';
}
if ($path == "") {
if ($path == "/") {
$uri .= $_SERVER['HTTP_HOST'] ;
} elseif (isset($_SERVER['HTTP_HOST'])) {
$uri .= str_replace('//', '/', $_SERVER['HTTP_HOST'] . $path);

Loading…
Cancel
Save