Commit 4824901a authored by Sergio's avatar Sergio
Browse files

display warning message instead of info

parent b91328b2
...@@ -209,7 +209,7 @@ class page_action extends tform_actions { ...@@ -209,7 +209,7 @@ class page_action extends tform_actions {
$client_group_id = $app->functions->intval($this->dataRecord["client_group_id"]); $client_group_id = $app->functions->intval($this->dataRecord["client_group_id"]);
$app->db->query("UPDATE domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id); $app->db->query("UPDATE domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id);
$lng_text = $app->lng("domain_owner_changed"); $lng_text = $app->lng("domain_owner_changed");
$_SESSION['show_info_msg'] = str_replace("{domain}", $this->dataRecord["domain"], $lng_text); $_SESSION['show_warning_msg'] = str_replace("{domain}", $this->dataRecord["domain"], $lng_text);
} }
} }
......
...@@ -46,9 +46,9 @@ $app->auth->check_module_permissions('client'); ...@@ -46,9 +46,9 @@ $app->auth->check_module_permissions('client');
$app->uses('listform_actions'); $app->uses('listform_actions');
if(isset($_SESSION['show_info_msg'])) { if(isset($_SESSION['show_warning_msg'])) {
$app->tpl->setloop('info', array(array('info_msg' => '<p>'.$_SESSION['show_info_msg'].'</p>'))); $app->tpl->setloop('warning', array(array('warning_msg' => '<p>'.$_SESSION['show_warning_msg'].'</p>')));
unset($_SESSION['show_info_msg']); unset($_SESSION['show_warning_msg']);
} }
$app->listform_actions->SQLOrderBy = 'ORDER BY domain.domain'; $app->listform_actions->SQLOrderBy = 'ORDER BY domain.domain';
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
<div class="pnl_toolsarea"> <div class="pnl_toolsarea">
<div> <div>
<tmpl_if name='info'> <tmpl_if name='warning'>
<div class="systemmonitor-state state-info"> <div class="systemmonitor-state state-warning">
<div class="status"></div> <div class="status"></div>
<div class="statusMsg"> <div class="statusMsg">
<tmpl_loop name="info"> <tmpl_loop name="warning">
{tmpl_var name='info_msg'} {tmpl_var name='warning_msg'}
</tmpl_loop> </tmpl_loop>
</div> </div>
</div> </div>
......
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