Permalink
Browse files

Merge branch 'master' into codesprint

  • Loading branch information...
2 parents 3a10078 + ce52d1b commit d24fafbe34208ab90f334c664cbbba607d72ba3c @mangtronix mangtronix committed Oct 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 BookReaderIA/inc/BookReader.inc
View
2 BookReaderIA/inc/BookReader.inc
@@ -37,7 +37,7 @@ class BookReader
// https://bugs.edge.launchpad.net/gnubook/+bug/385397
$imageFormatRegex = '@' . preg_quote($prefix, '@') . '_(jp2|tif|jpg)\.(zip|tar)$@';
- $baseLength = strlen($item->metadataGrabber->mainDir . '/');
+ $baseLength = strlen($item->getMainDir() . '/');
foreach ($item->getFiles() as $location => $fileInfo) {
$filename = substr($location, $baseLength);

0 comments on commit d24fafb

Please sign in to comment.