Add notice for dev.wishthis.online

This commit is contained in:
Jay Trees 2022-04-07 11:29:04 +02:00
parent 2bddcb3871
commit 655fedbbad

View file

@ -176,6 +176,20 @@ class Page
global $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