]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed small typos and indentation code
authorDavide Franco <bacula-dev@dflc.ch>
Sat, 9 Jul 2011 15:18:12 +0000 (17:18 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:22 +0000 (14:49 +0200)
gui/bacula-web/includes/bweb.inc.php
gui/bacula-web/index.php

index c1b49de8d2c2c519361a86e6753982ad28fa1ab1..06ffbdbd3ea6350be9a51a5ae15382b1ce7aa298 100644 (file)
@@ -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";
index 63e464d1d900c877c350b2749e221579f938cc5e..7644d03c9b731169d410574ce2b5d0568b9003e3 100644 (file)
@@ -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' );