Commit 664f54f6 authored by mcramer's avatar mcramer

Bugfix: Database creation through remoting api failed

parent 54f1581b
......@@ -1255,6 +1255,8 @@ class remoting {
//* Add a record
public function sites_database_add($session_id, $client_id, $params)
{
global $app;
if(!$this->checkPerm($session_id, 'sites_database_add')) {
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
return false;
......@@ -1277,6 +1279,8 @@ class remoting {
//* Update a record
public function sites_database_update($session_id, $client_id, $primary_id, $params)
{
global $app;
if(!$this->checkPerm($session_id, 'sites_database_update')) {
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
return false;
......@@ -1298,6 +1302,7 @@ class remoting {
//* Delete a record
public function sites_database_delete($session_id, $primary_id)
{
global $app;
if(!$this->checkPerm($session_id, 'sites_database_delete')) {
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
return false;
......
......@@ -400,7 +400,7 @@ class tform {
$selected = ($k == $val)?' SELECTED':'';
if(!empty($this->wordbook[$v]))
$v = $this->wordbook[$v];
$out .= "<option value='$k'$selected>$v</option>\r\n";
$out .= "<option value='$k'$selected>".$this->lng($v)."</option>\r\n";
}
}
$new_record[$key] = $out;
......
......@@ -83,7 +83,7 @@ $form["tabs"]['database'] = array (
'keyfield'=> 'domain_id',
'valuefield'=> 'domain'
),
'value' => array('0' => $app->tform->lng('select_site_txt'))
'value' => array('0' => 'select_site_txt')
),
'type' => array (
'datatype' => 'VARCHAR',
......@@ -115,7 +115,7 @@ $form["tabs"]['database'] = array (
'keyfield'=> 'database_user_id',
'valuefield'=> 'database_user'
),
'value' => array('0' => $app->tform->lng('select_dbuser_txt'))
'value' => array('0' => 'select_dbuser_txt')
),
'database_ro_user_id' => array (
'datatype' => 'INTEGER',
......@@ -126,7 +126,7 @@ $form["tabs"]['database'] = array (
'keyfield'=> 'database_user_id',
'valuefield'=> 'database_user'
),
'value' => array('0' => $app->tform->lng('no_dbuser_txt'))
'value' => array('0' => 'no_dbuser_txt')
),
'database_charset' => array (
'datatype' => 'VARCHAR',
......
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