projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0001606: Statement are not sent to general contact
[fa-stable.git]
/
reporting
/
includes
/
tcpdf.php
diff --git
a/reporting/includes/tcpdf.php
b/reporting/includes/tcpdf.php
index e30155a4fac3dc9f9020ae120475946341f9903b..0f6f48d73c78c198a8be329e21bd50960e835039 100644
(file)
--- a/
reporting/includes/tcpdf.php
+++ b/
reporting/includes/tcpdf.php
@@
-148,8
+148,8
@@
* -------------------------------------------------------------------------------
*/
if (!defined("K_PATH_FONTS"))
* -------------------------------------------------------------------------------
*/
if (!defined("K_PATH_FONTS"))
- define ("K_PATH_FONTS",
'../reporting/fonts/'
);
-define ("K_PATH_CACHE",
'../reporting/fonts/'
);
+ define ("K_PATH_FONTS",
dirname(__FILE__)."/../fonts/"
);
+define ("K_PATH_CACHE",
dirname(__FILE__)."/../fonts/"
);
define("K_CELL_HEIGHT_RATIO", 1.25);
//require_once(dirname(__FILE__).'/config/tcpdf_config.php');
define("K_CELL_HEIGHT_RATIO", 1.25);
//require_once(dirname(__FILE__).'/config/tcpdf_config.php');
@@
-3597,8
+3597,8
@@
if (!class_exists('TCPDF')) {
if ($type == "jpg") {
$type = "jpeg";
}
if ($type == "jpg") {
$type = "jpeg";
}
- $mqr =
get_magic_quotes_runtime(
);
-
set_magic_quotes_runtime(
0);
+ $mqr =
ini_get('magic_quotes_runtime'
);
+
ini_set('magic_quotes_runtime',
0);
// Specific image handlers
$mtd = '_parse'.$type;
// GD image handler function
// Specific image handlers
$mtd = '_parse'.$type;
// GD image handler function
@@
-3625,7
+3625,7
@@
if (!class_exists('TCPDF')) {
//If false, we cannot process image
return;
}
//If false, we cannot process image
return;
}
-
set_magic_quotes_runtime(
$mqr);
+
ini_set('magic_quotes_runtime',
$mqr);
$info['i'] = count($this->images) + 1;
// add image to document
$this->images[$file] = $info;
$info['i'] = count($this->images) + 1;
// add image to document
$this->images[$file] = $info;
@@
-4505,8
+4505,8
@@
if (!class_exists('TCPDF')) {
$this->_out('<</Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences ['.$diff.']>>');
$this->_out('endobj');
}
$this->_out('<</Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences ['.$diff.']>>');
$this->_out('endobj');
}
- $mqr =
get_magic_quotes_runtime(
);
-
set_magic_quotes_runtime(
0);
+ $mqr =
ini_get('magic_quotes_runtime'
);
+
ini_set('magic_quotes_runtime',
0);
foreach($this->FontFiles as $file => $info) {
//Font file embedding
$this->_newobj();
foreach($this->FontFiles as $file => $info) {
//Font file embedding
$this->_newobj();
@@
-4536,7
+4536,7
@@
if (!class_exists('TCPDF')) {
$this->_putstream($font);
$this->_out('endobj');
}
$this->_putstream($font);
$this->_out('endobj');
}
-
set_magic_quotes_runtime(
$mqr);
+
ini_set('magic_quotes_runtime',
$mqr);
foreach($this->fonts as $k => $font) {
//Font objects
$this->fonts[$k]['n'] = $this->n + 1;
foreach($this->fonts as $k => $font) {
//Font objects
$this->fonts[$k]['n'] = $this->n + 1;