Skip to content

featurebox_menu displays alert box without debug mode  #3290

@Jimmi08

Description

@Jimmi08

I just installed BS GAME PLUS theme by fizi
he uses this code in theme.php

<div class='col-md-12'>
      {SETSTYLE=slider}
      {MENU=featurebox}
    </div>
  </div>

There was alert box displayed for all visitors because this code in featurebox_menu.php:

if(!$text)
{
	echo "<div class='alert alert-block alert-warning'>".$message = e107::getParser()->lanVars(FBLAN_25, array('x'=>$type))."</div>";
//	e107::getMessage()->addDebug("There are no featurebox items using the ".$type." template");
}

Why is there direct echo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions