Minor change in class.graphic.inc
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 16 Nov 2010 13:52:26 +0000 (13:52 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 16 Nov 2010 13:52:26 +0000 (13:52 +0000)
CHANGELOG.txt
reporting/includes/class.graphic.inc

index 7fd1b14ea54373bba543fc9243ba83f7c610c141..2b9c98add305690698686098238805154bc07c85 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+16-Nov-2010 Joe Hunt
+# Minor change in class.graphic.inc
+$ /reporting/includes/class.graphic.inc
+
 15-Nov-2010 Janusz Dobrowolski
 # Fixed date legend on po/grn/invoice
 $ /purchasing/includes/ui/po_ui.inc
index d10cc5dbb0b8752ce860eff19ba06cce435957b6..75e035192d25f6e52c9bd2d8dade4921585c4a12 100644 (file)
@@ -152,11 +152,11 @@ class graph
     function graph()
     {
                $this->encoding = $_SESSION['language']->encoding;
-               putenv('GDFONTPATH='.dirname(__FILE__).'/../fonts');
+               $path = dirname(__FILE__).'/../fonts/';
 
                // If you use utf-8 encoding you have to download and install FreeSans.ttf font.
                // It is not bundled with application due to its size.
-               $this->fontfile = $this->encoding=='UTF-8' ? 'FreeSans' : 'LiberationSans-Regular';
+               $this->fontfile = $this->encoding=='UTF-8' ? $path.'FreeSans.ttf' : $path.'LiberationSans-Regular.ttf';
 
         $this->x = $this->y = $this->z = array();
         $this->biggest_x        = NULL;