From: Davide Franco Date: Sat, 9 Jul 2011 15:18:12 +0000 (+0200) Subject: bacula-web: Fixed small typos and indentation code X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8fc531ecaae865ad4a5a64a2166e254652c94f10;p=bacula%2Fbacula bacula-web: Fixed small typos and indentation code --- diff --git a/gui/bacula-web/includes/bweb.inc.php b/gui/bacula-web/includes/bweb.inc.php index c1b49de8d2..06ffbdbd3e 100644 --- a/gui/bacula-web/includes/bweb.inc.php +++ b/gui/bacula-web/includes/bweb.inc.php @@ -61,8 +61,8 @@ class Bweb extends DB $dsn = $this->bwcfg->Get_Dsn( $this->catalog_current_id ); // Connect to the database - $options = array( 'portability' => DB_PORTABILITY_ALL ); - $this->db_link = $this->connect( $dsn, $options ); + $options = array( 'portability' => DB_PORTABILITY_ALL ); + $this->db_link = $this->connect( $dsn, $options ); if (DB::isError($this->db_link)) { $this->TriggerDBError('Unable to connect to catalog', $this->db_link); @@ -304,7 +304,7 @@ class Bweb extends DB } // Return the list of Pools in a array - public function get_Pools() + public function getPools() { $pools = array(); $query = "SELECT name, poolid FROM pool"; diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 63e464d1d9..7644d03c9b 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -71,7 +71,7 @@ unset($graph); $vols_by_pool = array(); $graph = new CGraph( "graph1.png" ); -foreach( $dbSql->get_Pools() as $pool ) +foreach( $dbSql->getPools() as $pool ) $vols_by_pool[] = array( $pool['name'], $dbSql->countVolumes( $pool['poolid'] ) ); $graph->SetData( $vols_by_pool, 'pie', 'text-data-single' );