Code

Old way was better...
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Sep 2009 13:58:51 +0000 (13:58 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Sep 2009 13:58:51 +0000 (13:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14273 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/exporter/class_pdfExporter.inc
gosa-core/include/php_setup.inc

index a097d00d8ac0ea10064b82d8074057e39718ae6d..a3ba02c397ab02b43e57c5944f5a75fbbd2d387b 100644 (file)
@@ -1,8 +1,11 @@
 <?php
+// Try to load PDF library
+@include_once('fpdf/fpdf.php');
 
 // Load supporter class only if FPDF is loaded
 $classes= get_declared_classes();
 if(in_array('FPDF', $classes)) {
+  define('FPDF_FONTPATH', '/usr/share/php/fpdf/font/');
   include('class_PDF.inc');
 }
 
index 9ba0e4dacaa1140070b794bccf403d8652e45344..e077822d5791922711b30e55b0443214bea11e49 100644 (file)
@@ -291,9 +291,5 @@ $smarty->template_dir = $BASE_DIR.'/ihtml/';
 $smarty->caching= false;
 $smarty->php_handling= SMARTY_PHP_REMOVE;
 
-// Try to load PDF library
-define('FPDF_FONTPATH', '/usr/share/php/fpdf/font/');
-@include('fpdf/fpdf.php');
-
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>