Skip to content

Commit

Permalink
ZipFileLoader 5.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrainbow committed May 29, 2013
1 parent a164501 commit fbdc795
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ePub/Loader/ZipFileLoader.php
Expand Up @@ -37,7 +37,8 @@ public function load($file)
$ns = $package->getNamespaces();
foreach ($ns as $key => $value) {
$package->registerXPathNamespace($key, $value);
$opfFile = (string) $package->xpath('//'. $key .':rootfile/@full-path')[0]['full-path'];
$items = $package->xpath('//'. $key .':rootfile/@full-path');
$opfFile = (string) $items[0]['full-path'];
}
}

Expand All @@ -61,4 +62,4 @@ public function load($file)

return $package;
}
}
}

0 comments on commit fbdc795

Please sign in to comment.