Fix some trailing white space.
--HG-- extra : rebase_source : 9e4b2ab2381d261b3562f2e4a5c56c7e0e1c7ed7
This commit is contained in:
parent
7f74a172f6
commit
3ca4996a41
|
@ -26,12 +26,13 @@ class EPub {
|
|||
* Constructor
|
||||
*
|
||||
* @param string $file path to epub file to work on
|
||||
* @param string $zipClass class to handle zip
|
||||
* @throws Exception if metadata could not be loaded
|
||||
*/
|
||||
public function __construct($file){
|
||||
public function __construct($file, $zipClass = 'clsTbsZip'){
|
||||
// open file
|
||||
$this->file = $file;
|
||||
$this->zip = new clsTbsZip();
|
||||
$this->zip = new $zipClass();
|
||||
if(!$this->zip->Open($this->file)){
|
||||
throw new Exception('Failed to read epub file');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue