From: Davide Franco Date: Sun, 17 Jul 2011 20:39:27 +0000 (+0200) Subject: bacula-web: Removed useless Get_Dsn() function in Config class X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca08d75488f46d458d5cd72a7f7a4e19baddb559;p=bacula%2Fbacula bacula-web: Removed useless Get_Dsn() function in Config class --- diff --git a/gui/bacula-web/includes/cfg/config.class.php b/gui/bacula-web/includes/cfg/config.class.php index a3398e38a4..0c06388105 100644 --- a/gui/bacula-web/includes/cfg/config.class.php +++ b/gui/bacula-web/includes/cfg/config.class.php @@ -74,18 +74,6 @@ return count( $this->catalogs ); } - public function Get_Dsn( $catalog_id ) - { - // Construct a valid dsn - $dsn = array(); - $dsn['hostspec'] = $this->catalogs[$catalog_id]["host"]; - $dsn['username'] = $this->catalogs[$catalog_id]["login"]; - $dsn['password'] = $this->catalogs[$catalog_id]["password"]; - $dsn['database'] = $this->catalogs[$catalog_id]["db_name"]; - $dsn['phptype'] = $this->catalogs[$catalog_id]["db_type"]; - return $dsn; - } - public function getDSN( $catalog_id ) { $dsn = '';