aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-01-19 23:19:09 +0100
committerThomas Citharel <tcit@tcit.fr>2015-01-19 23:19:09 +0100
commit1cedeb681f84b2c9b17f4f8b88d4fffabb15d6c8 (patch)
treec148e4e12792bdd6e51b7e9f046719fcdb6cda8c /inc/3rdparty
parent894cd087f41d605f2f093aaad1300825f705e009 (diff)
downloadwallabag-1cedeb681f84b2c9b17f4f8b88d4fffabb15d6c8.tar.gz
wallabag-1cedeb681f84b2c9b17f4f8b88d4fffabb15d6c8.tar.zst
wallabag-1cedeb681f84b2c9b17f4f8b88d4fffabb15d6c8.zip
(kind of) fix for #1011 and little corrections for PDF export
Diffstat (limited to 'inc/3rdparty')
-rw-r--r--inc/3rdparty/libraries/tcpdf/tcpdf.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/inc/3rdparty/libraries/tcpdf/tcpdf.php b/inc/3rdparty/libraries/tcpdf/tcpdf.php
index 78694a0e..70c1747a 100644
--- a/inc/3rdparty/libraries/tcpdf/tcpdf.php
+++ b/inc/3rdparty/libraries/tcpdf/tcpdf.php
@@ -2927,11 +2927,17 @@ class TCPDF {
2927 public function Error($msg) { 2927 public function Error($msg) {
2928 // unset all class variables 2928 // unset all class variables
2929 $this->_destroy(true); 2929 $this->_destroy(true);
2930 throw new Exception('TCPDF ERROR: '.$msg);
2931 /*
2932
2933 I had problems with the constants for some reason, so here we force
2934
2935 $this->_destroy(true);
2930 if (defined('K_TCPDF_THROW_EXCEPTION_ERROR') AND !K_TCPDF_THROW_EXCEPTION_ERROR) { 2936 if (defined('K_TCPDF_THROW_EXCEPTION_ERROR') AND !K_TCPDF_THROW_EXCEPTION_ERROR) {
2931 die('<strong>TCPDF ERROR: </strong>'.$msg); 2937 die('<strong>TCPDF ERROR: </strong>'.$msg);
2932 } else { 2938 } else {
2933 throw new Exception('TCPDF ERROR: '.$msg); 2939 throw new Exception('TCPDF ERROR: '.$msg);
2934 } 2940 }*/
2935 } 2941 }
2936 2942
2937 /** 2943 /**
@@ -6915,7 +6921,7 @@ class TCPDF {
6915 $ph = $this->getHTMLUnitToUnits($h, 0, $this->pdfunit, true) * $this->imgscale * $this->k; 6921 $ph = $this->getHTMLUnitToUnits($h, 0, $this->pdfunit, true) * $this->imgscale * $this->k;
6916 $imsize = array($pw, $ph); 6922 $imsize = array($pw, $ph);
6917 } else { 6923 } else {
6918 $this->Error('[Image] Unable to get the size of the image: '.$file); 6924 $this->Error('[Image] Unable to fetch image: '.$file);
6919 } 6925 }
6920 } 6926 }
6921 // file hash 6927 // file hash