Commit 78a0c4a8 authored by Sergio's avatar Sergio
Browse files

don't use setloop for only one message

parent 4824901a
......@@ -47,7 +47,7 @@ $app->auth->check_module_permissions('client');
if(isset($_SESSION['show_warning_msg'])) {
$app->tpl->setloop('warning', array(array('warning_msg' => '<p>'.$_SESSION['show_warning_msg'].'</p>')));
$app->tpl->setVar('warning_msg', $_SESSION['show_warning_msg']);
......@@ -5,13 +5,11 @@
<div class="pnl_toolsarea">
<tmpl_if name='warning'>
<tmpl_if name='warning_msg'>
<div class="systemmonitor-state state-warning">
<div class="status"></div>
<div class="statusMsg">
<tmpl_loop name="warning">
{tmpl_var name='warning_msg'}
{tmpl_var name='warning_msg'}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment