projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c697514
)
IA-specific: Patch from Tracey for new way to get item metadata
author
Michael Ang
<mang@archive.org>
Wed, 26 Oct 2011 19:15:32 +0000
(19:15 +0000)
committer
Michael Ang
<mang@archive.org>
Wed, 26 Oct 2011 19:16:45 +0000
(19:16 +0000)
BookReaderIA/inc/BookReader.inc
patch
|
blob
|
history
diff --git
a/BookReaderIA/inc/BookReader.inc
b/BookReaderIA/inc/BookReader.inc
index
96c1f3a
..
af15feb
100644
(file)
--- a/
BookReaderIA/inc/BookReader.inc
+++ b/
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);