1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Fixes #3290, Fixes #3074 - Featurebox debug message was visible to public.

This commit is contained in:
Cameron 2018-07-21 10:08:13 -07:00
parent 91b49cd293
commit 0cc458e4e8

View File

@ -13,10 +13,9 @@ e107::includeLan(e_PLUGIN.'featurebox/languages/'.e_LANGUAGE.'_admin_featurebox.
$type = vartrue(e107::getPlugPref('featurebox','menu_category'),'bootstrap_carousel');
$text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
if(!$text)
if(empty($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");
e107::getMessage()->addDebug("DEBUG: There are no featurebox items using the ".$type." template");
}
echo $text;