mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
do not debug inside an epub
This commit is contained in:
parent
18209292a4
commit
ec15d0a784
2 changed files with 12 additions and 6 deletions
8
inc/3rdparty/libraries/PHPePub/EPub.php
vendored
8
inc/3rdparty/libraries/PHPePub/EPub.php
vendored
|
@ -41,6 +41,8 @@ class EPub {
|
|||
|
||||
private $bookVersion = EPub::BOOK_VERSION_EPUB2;
|
||||
|
||||
private $debugInside = FALSE;
|
||||
|
||||
public $maxImageWidth = 768;
|
||||
public $maxImageHeight = 1024;
|
||||
|
||||
|
@ -132,10 +134,14 @@ class EPub {
|
|||
*
|
||||
* @return void
|
||||
*/
|
||||
function __construct($bookVersion = EPub::BOOK_VERSION_EPUB2, $languageCode = "en", $writingDirection = EPub::DIRECTION_LEFT_TO_RIGHT) {
|
||||
function __construct($bookVersion = EPub::BOOK_VERSION_EPUB2, $debugInside = FALSE, $languageCode = "en", $writingDirection = EPub::DIRECTION_LEFT_TO_RIGHT) {
|
||||
include_once("Zip.php");
|
||||
include_once("Logger.php");
|
||||
|
||||
if (!$debugInside) {
|
||||
error_reporting(E_ERROR | E_PARSE);
|
||||
}
|
||||
|
||||
$this->bookVersion = $bookVersion;
|
||||
$this->writingDirection = $writingDirection;
|
||||
$this->languageCode = $languageCode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue