Add notice for dev.wishthis.online
This commit is contained in:
parent
2bddcb3871
commit
655fedbbad
1 changed files with 14 additions and 0 deletions
|
@ -176,6 +176,20 @@ class Page
|
||||||
global $locale;
|
global $locale;
|
||||||
|
|
||||||
$this->language = $locale;
|
$this->language = $locale;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Development environment notice
|
||||||
|
*/
|
||||||
|
if (
|
||||||
|
defined('ENV_IS_DEV')
|
||||||
|
&& true === ENV_IS_DEV
|
||||||
|
&& 'dev.wishthis.online' === $_SERVER['HTTP_HOST']
|
||||||
|
) {
|
||||||
|
$this->messages[] = self::info(
|
||||||
|
__('This is the development environment of wishthis. The databse will reset every day at around 00:00.'),
|
||||||
|
__('Development environment')
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function header(): void
|
public function header(): void
|
||||||
|
|
Loading…
Reference in a new issue