From 39113e28435e457fb56c3efb53f95ec0e54c288c Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Sun, 16 Feb 2014 12:24:01 +0100
Subject: [PATCH] Fixed: FS#3143 - ISPConfig API: sites_database_add misses
 param website_id

---
 remoting_client/API-docs/sites_database_add.html | 1 +
 remoting_client/examples/sites_database_add.php  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/remoting_client/API-docs/sites_database_add.html b/remoting_client/API-docs/sites_database_add.html
index 411f75dc3a..acf53e7bc0 100644
--- a/remoting_client/API-docs/sites_database_add.html
+++ b/remoting_client/API-docs/sites_database_add.html
@@ -20,6 +20,7 @@
 <p class="margin"> <span class="var">$session_id</span>, <span class="var">$client_id</span>, <span class="var">$params</span></p>
 <p class="headgrp">Parameters (in <span class="var">$params</span>): </p>
 <p class="margin"> server_id&nbsp;&nbsp;(<span class="paratype">int(11)</span>)</p>
+<p class="margin"> website_id&nbsp;&nbsp;(<span class="paratype">int(11)</span>)</p>
 <p class="margin"> type&nbsp;&nbsp;(<span class="paratype">varchar(16)</span>)</p>
 <p class="margin"> database_name&nbsp;&nbsp;(<span class="paratype">varchar(64)</span>)</p>
 <p class="margin"> database_user_id&nbsp;&nbsp;(<span class="paratype">int(11)</span>)</p>
diff --git a/remoting_client/examples/sites_database_add.php b/remoting_client/examples/sites_database_add.php
index c391867143..3c82776990 100644
--- a/remoting_client/examples/sites_database_add.php
+++ b/remoting_client/examples/sites_database_add.php
@@ -19,6 +19,7 @@ try {
 	$params = array(
 		'server_id' => 1,
 		'type' => 'mysql',
+		'website_id' => 1,
 		'database_name' => 'db_name2',
 		'database_user_id' => '1',
 		'database_ro_user_id' => '0',
-- 
GitLab