summaryrefslogtreecommitdiff
path: root/item_chart.php
diff options
context:
space:
mode:
Diffstat (limited to 'item_chart.php')
-rwxr-xr-x[-rw-r--r--]item_chart.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/item_chart.php b/item_chart.php
index 454ccc9..030762d 100644..100755
--- a/item_chart.php
+++ b/item_chart.php
@@ -16,7 +16,9 @@
/**
* required setup
*/
+use Bitweaver\KernelTools;
require_once '../kernel/includes/setup_inc.php';
+
include_once( STATS_PKG_PATH . "Statistics.php" );
include_once( UTIL_PKG_INCLUDE_PATH . "phplot.php" );
global $gBitSystem;
@@ -35,8 +37,8 @@ $graph->SetPrintImage(0);
$graph->SetPlotType( $chart_type );
$graph->SetXTickPos( 'none' );
//$graph->SetYScaleType( 'log' );
-$graph->SetTitle( tra( $data['title'] ) );
-$graph->SetXLabel( tra( 'Title' ) );
+$graph->SetTitle( KernelTools::tra $data['title'] ) );
+$graph->SetXLabel( KernelTools::tra 'Title' ) );
$i = 0;
foreach( $data['data'] as $guid => $info ) {