From f5c0d0a3fdcf9aa8ad30a304f585bd7c9d91eec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20ANDR=C3=89?= Date: Fri, 6 Jun 2014 15:56:40 +0200 Subject: [PATCH] Fixed bug on jpgraph dependencies (It's suggested to use composer jpgraph/jpgraph instead of requiring these files) --- Classes/PHPExcel/Chart/Renderer/jpgraph.php | 34 ++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Classes/PHPExcel/Chart/Renderer/jpgraph.php b/Classes/PHPExcel/Chart/Renderer/jpgraph.php index 41066ef..99a0b97 100644 --- a/Classes/PHPExcel/Chart/Renderer/jpgraph.php +++ b/Classes/PHPExcel/Chart/Renderer/jpgraph.php @@ -554,7 +554,7 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderAreaChart($groupCount, $dimensions = '2d') { - require_once('jpgraph_line.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); $this->_renderCartesianPlotArea(); @@ -565,7 +565,7 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderLineChart($groupCount, $dimensions = '2d') { - require_once('jpgraph_line.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); $this->_renderCartesianPlotArea(); @@ -576,7 +576,7 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderBarChart($groupCount, $dimensions = '2d') { - require_once('jpgraph_bar.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_bar.php'); $this->_renderCartesianPlotArea(); @@ -587,9 +587,9 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderScatterChart($groupCount) { - require_once('jpgraph_scatter.php'); - require_once('jpgraph_regstat.php'); - require_once('jpgraph_line.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_scatter.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_regstat.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); $this->_renderCartesianPlotArea('linlin'); @@ -600,7 +600,7 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderBubbleChart($groupCount) { - require_once('jpgraph_scatter.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_scatter.php'); $this->_renderCartesianPlotArea('linlin'); @@ -611,9 +611,9 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderPieChart($groupCount, $dimensions = '2d', $doughnut = False, $multiplePlots = False) { - require_once('jpgraph_pie.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_pie.php'); if ($dimensions == '3d') { - require_once('jpgraph_pie3d.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_pie3d.php'); } $this->_renderPiePlotArea($doughnut); @@ -686,7 +686,7 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderRadarChart($groupCount) { - require_once('jpgraph_radar.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_radar.php'); $this->_renderRadarPlotArea(); @@ -697,7 +697,7 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderStockChart($groupCount) { - require_once('jpgraph_stock.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_stock.php'); $this->_renderCartesianPlotArea('intint'); @@ -708,7 +708,7 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderContourChart($groupCount,$dimensions) { - require_once('jpgraph_contour.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_contour.php'); $this->_renderCartesianPlotArea('intint'); @@ -719,11 +719,11 @@ class PHPExcel_Chart_Renderer_jpgraph private function _renderCombinationChart($groupCount,$dimensions,$outputDestination) { - require_once('jpgraph_line.php'); - require_once('jpgraph_bar.php'); - require_once('jpgraph_scatter.php'); - require_once('jpgraph_regstat.php'); - require_once('jpgraph_line.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_bar.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_scatter.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_regstat.php'); + require_once(PHPExcel_Settings::getChartRendererPath().'jpgraph_line.php'); $this->_renderCartesianPlotArea();