Sergio Cambra
2014-07-01 78a0c4a8059d277daf290639eb497e08869ddfcc
don't use setloop for only one message
2 files modified
8 ■■■■■ changed files
interface/web/client/domain_list.php 2 ●●● patch | view | raw | blame | history
interface/web/client/templates/domain_list.htm 6 ●●●●● patch | view | raw | blame | history
interface/web/client/domain_list.php
@@ -47,7 +47,7 @@
$app->uses('listform_actions');
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']);
    unset($_SESSION['show_warning_msg']);
}
interface/web/client/templates/domain_list.htm
@@ -5,13 +5,11 @@
    <div class="pnl_toolsarea">
        <div>
        <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_loop>
                    {tmpl_var name='warning_msg'}
                </div>
            </div>
        </tmpl_if>