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:
@@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user