diff --git a/application/utils.inc.php b/application/utils.inc.php index f8e06f8c8..fd968db22 100644 --- a/application/utils.inc.php +++ b/application/utils.inc.php @@ -2430,4 +2430,11 @@ class utils $e = new CoreException($sMessage, null, '', $oException); throw $e; } + + /** + * @since 3.0.0 + */ + public static function IsEasterEggAllowed(){ + return (stripos(ITOP_VERSION, 'alpha') !== false) || utils::IsDevelopmentEnvironment(); + } } diff --git a/css/errorpage.scss b/css/errorpage.scss new file mode 100644 index 000000000..d899906ee --- /dev/null +++ b/css/errorpage.scss @@ -0,0 +1,8 @@ +body{ + align-items: center; +} +#ibo-page-container{ + flex-grow: 0; + height: auto; + border: 3px solid #CBD2D9; +} \ No newline at end of file diff --git a/dictionaries/ui/pages/en.dictionary.itop.errorpage.php b/dictionaries/ui/pages/en.dictionary.itop.errorpage.php new file mode 100644 index 000000000..cbf55eac4 --- /dev/null +++ b/dictionaries/ui/pages/en.dictionary.itop.errorpage.php @@ -0,0 +1,23 @@ + 'You are using an alpha version that may be unstable or include bugs and unfinished features. If you think this error occurred because of this please send us your feedback!', +)); \ No newline at end of file diff --git a/sources/application/WebPage/ErrorPage.php b/sources/application/WebPage/ErrorPage.php index 603bc2515..341fc11f4 100644 --- a/sources/application/WebPage/ErrorPage.php +++ b/sources/application/WebPage/ErrorPage.php @@ -13,6 +13,7 @@ class ErrorPage extends NiceWebPage $this->add_linked_script("../js/jquery.blockUI.js"); $this->add_linked_script("../setup/setup.js"); $this->add_saas("css/setup.scss"); + $this->add_saas("css/errorpage.scss"); } public function info($sText) @@ -36,6 +37,11 @@ class ErrorPage extends NiceWebPage public function error($sText) { $this->add("
"); + if(utils::IsEasterEggAllowed()) + { + $this->add('
');
+ $this->add('');
+ }
$this->log_error($sText);
}