]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Removed useless Get_Dsn() function in Config class
authorDavide Franco <bacula-dev@dflc.ch>
Sun, 17 Jul 2011 20:39:27 +0000 (22:39 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:25 +0000 (14:49 +0200)
gui/bacula-web/includes/cfg/config.class.php

index a3398e38a4968b538e4f679d9c77701a77efc9b3..0c063881053425db6d340d96d3db9d7f9282b928 100644 (file)
                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 = '';