summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2bcc194)
raw | patch | inline | side by side (parent: 2bcc194)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Sep 2009 13:58:51 +0000 (13:58 +0000) | ||
committer | cajus <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 | patch | blob | history | |
gosa-core/include/php_setup.inc | patch | blob | history |
diff --git a/gosa-core/include/exporter/class_pdfExporter.inc b/gosa-core/include/exporter/class_pdfExporter.inc
index a097d00d8ac0ea10064b82d8074057e39718ae6d..a3ba02c397ab02b43e57c5944f5a75fbbd2d387b 100644 (file)
<?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)
$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:
?>