From 8fc531ecaae865ad4a5a64a2166e254652c94f10 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Sat, 9 Jul 2011 17:18:12 +0200 Subject: [PATCH] bacula-web: Fixed small typos and indentation code --- gui/bacula-web/includes/bweb.inc.php | 6 +++--- gui/bacula-web/index.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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' ); -- 2.39.5