aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/libraries/PHPePub
diff options
context:
space:
mode:
authortcitworld <tcit@tcit.fr>2014-06-07 16:38:39 +0200
committertcitworld <tcit@tcit.fr>2014-06-07 16:38:39 +0200
commit8142d4b1e6794b9ce6ead19166f1c76d9ae4e162 (patch)
treef070a9789d6c125a0c1141e385b59cf0a42247e6 /inc/3rdparty/libraries/PHPePub
parentc93a5c137fcabcf771e7bd2d16d3b8d819de16da (diff)
parent35d4e27588d3e7a6ace1f6b101d909f1eceafac9 (diff)
downloadwallabag-8142d4b1e6794b9ce6ead19166f1c76d9ae4e162.tar.gz
wallabag-8142d4b1e6794b9ce6ead19166f1c76d9ae4e162.tar.zst
wallabag-8142d4b1e6794b9ce6ead19166f1c76d9ae4e162.zip
Merge pull request #722 from tcitworld/dev
do not output debug while generating epub
Diffstat (limited to 'inc/3rdparty/libraries/PHPePub')
-rw-r--r--inc/3rdparty/libraries/PHPePub/EPub.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/3rdparty/libraries/PHPePub/EPub.php b/inc/3rdparty/libraries/PHPePub/EPub.php
index f1f41bd5..d9b990b7 100644
--- a/inc/3rdparty/libraries/PHPePub/EPub.php
+++ b/inc/3rdparty/libraries/PHPePub/EPub.php
@@ -41,6 +41,8 @@ class EPub {
41 41
42 private $bookVersion = EPub::BOOK_VERSION_EPUB2; 42 private $bookVersion = EPub::BOOK_VERSION_EPUB2;
43 43
44 private $debugInside = FALSE;
45
44 public $maxImageWidth = 768; 46 public $maxImageWidth = 768;
45 public $maxImageHeight = 1024; 47 public $maxImageHeight = 1024;
46 48
@@ -132,10 +134,14 @@ class EPub {
132 * 134 *
133 * @return void 135 * @return void
134 */ 136 */
135 function __construct($bookVersion = EPub::BOOK_VERSION_EPUB2, $languageCode = "en", $writingDirection = EPub::DIRECTION_LEFT_TO_RIGHT) { 137 function __construct($bookVersion = EPub::BOOK_VERSION_EPUB2, $debugInside = FALSE, $languageCode = "en", $writingDirection = EPub::DIRECTION_LEFT_TO_RIGHT) {
136 include_once("Zip.php"); 138 include_once("Zip.php");
137 include_once("Logger.php"); 139 include_once("Logger.php");
138 140
141 if (!$debugInside) {
142 error_reporting(E_ERROR | E_PARSE);
143 }
144
139 $this->bookVersion = $bookVersion; 145 $this->bookVersion = $bookVersion;
140 $this->writingDirection = $writingDirection; 146 $this->writingDirection = $writingDirection;
141 $this->languageCode = $languageCode; 147 $this->languageCode = $languageCode;