1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 10:01:56 +02:00

PHP8 Warning removal.

This commit is contained in:
Cameron
2021-01-01 10:45:26 -08:00
parent 81634d5f5a
commit 14862f0463
18 changed files with 114 additions and 86 deletions

View File

@@ -13,5 +13,13 @@
if (!defined('e107_INIT')) { exit; }
$text = e107::getParser()->parseTemplate("{HERO}", true);
e107::getRender()->tablerender(null, $text, 'hero-menu');
if(deftrue('e_FRONTPAGE'))
{
$text = e107::getParser()->parseTemplate("{HERO}", true);
e107::getRender()->tablerender(null, $text, 'hero-menu');
}
elseif(ADMIN)
{
$text = "<div class='alert alert-danger'>Hero only runs on the frontpage of your site.</div>";
e107::getRender()->tablerender(null, $text,'hero-menu');
}