From 50b97923de83d7a62d6bd07ab1ac1f0205dcbce1 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Fri, 24 Jun 2011 16:44:59 +0200 Subject: [PATCH] bacula-web: Rename php class TimeUtils to CTimeUtils --- gui/bacula-web/backupjob-report.php | 2 +- gui/bacula-web/config.inc.php | 2 +- gui/bacula-web/includes/utils/ctimeutils.class.php | 2 +- gui/bacula-web/jobs.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index 843ac7b94c..e3fde54e33 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -103,7 +103,7 @@ $job['Level'] = $joblevel[ $job['Level'] ]; // Job execution execution time - $job['ElapsedTime'] = TimeUtils::Get_Elapsed_Time( $job['StartTime'], $job['EndTime'] ); + $job['ElapsedTime'] = CTimeUtils::Get_Elapsed_Time( $job['StartTime'], $job['EndTime'] ); // odd and even row if( count($jobs) % 2) diff --git a/gui/bacula-web/config.inc.php b/gui/bacula-web/config.inc.php index eb409cc400..2c28ff15e9 100644 --- a/gui/bacula-web/config.inc.php +++ b/gui/bacula-web/config.inc.php @@ -33,7 +33,7 @@ require_once BW_OBJ . "graph/bgraph.class.php"; require_once BW_OBJ . "bweb.inc.php"; require_once BW_OBJ . "utils/cutils.class.php"; - require_once BW_OBJ . "utils/timeutils.class.php"; + require_once BW_OBJ . "utils/ctimeutils.class.php"; // Global constants define('CONFIG_DIR', BW_ROOT . "/config/"); diff --git a/gui/bacula-web/includes/utils/ctimeutils.class.php b/gui/bacula-web/includes/utils/ctimeutils.class.php index cd3b13a4df..9843c169e2 100644 --- a/gui/bacula-web/includes/utils/ctimeutils.class.php +++ b/gui/bacula-web/includes/utils/ctimeutils.class.php @@ -15,7 +15,7 @@ +-------------------------------------------------------------------------+ */ -class TimeUtils { +class CTimeUtils { static public function Get_Elapsed_Time( $start_time, $end_time) { $start = ''; diff --git a/gui/bacula-web/jobs.php b/gui/bacula-web/jobs.php index 665d8be8c3..4fb46aa9af 100644 --- a/gui/bacula-web/jobs.php +++ b/gui/bacula-web/jobs.php @@ -119,7 +119,7 @@ $end = $job['EndTime']; // Job execution execution time - $job['elapsed_time'] = TimeUtils::Get_Elapsed_Time( $start, $end); + $job['elapsed_time'] = CTimeUtils::Get_Elapsed_Time( $start, $end); // Job Level $job['Level'] = $job_level[ $job['Level'] ]; // Job Size -- 2.39.5