Fix some trailing white space.

--HG--
extra : rebase_source : 9e4b2ab2381d261b3562f2e4a5c56c7e0e1c7ed7
This commit is contained in:
Sébastien Lucas 2013-10-23 16:27:09 +02:00
parent 7f74a172f6
commit 3ca4996a41

View file

@ -26,12 +26,13 @@ class EPub {
* Constructor * Constructor
* *
* @param string $file path to epub file to work on * @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 * @throws Exception if metadata could not be loaded
*/ */
public function __construct($file){ public function __construct($file, $zipClass = 'clsTbsZip'){
// open file // open file
$this->file = $file; $this->file = $file;
$this->zip = new clsTbsZip(); $this->zip = new $zipClass();
if(!$this->zip->Open($this->file)){ if(!$this->zip->Open($this->file)){
throw new Exception('Failed to read epub file'); throw new Exception('Failed to read epub file');
} }