Commit b1cfd5bb authored by Till Brehm's avatar Till Brehm

Improved code to set server_name under system config.

parent ef20902f
...@@ -75,7 +75,7 @@ class page_action extends tform_actions { ...@@ -75,7 +75,7 @@ class page_action extends tform_actions {
function onShowEnd() { function onShowEnd() {
global $app; global $app;
$app->tpl->setVar('server_name', $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ? AND ((SELECT COUNT(*) FROM server) > 1)", $this->id)['server_name']); $app->tpl->setVar('server_name', $app->functions->htmlentities($app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ? AND ((SELECT COUNT(*) FROM server) > 1)", $this->id)['server_name']));
parent::onShowEnd(); parent::onShowEnd();
} }
......
Markdown is supported
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