Browse Source

- Split some tests in he bootstrap

pull/16/head
Jaussoin Timothée 10 years ago
parent
commit
7a0cdcf549
  1. 9
      bootstrap.php

9
bootstrap.php

@ -101,11 +101,14 @@ class Bootstrap {
define('APP_VERSION', $this->getVersion());
define('APP_SECURED', $this->isServerSecured());
if(isset($_SERVER['HTTP_HOST'])
&& isset($_SERVER['SERVER_NAME'])) {
define('BASE_DOMAIN', $_SERVER["SERVER_NAME"]);
if(isset($_SERVER['HTTP_HOST'])) {
define('BASE_HOST', $_SERVER['HTTP_HOST']);
}
if(isset($_SERVER['SERVER_NAME'])) {
define('BASE_DOMAIN', $_SERVER["SERVER_NAME"]);
}
define('BASE_URI', $this->getBaseUri());
define('CACHE_URI', $this->getBaseUri() . 'cache/');

Loading…
Cancel
Save