Permalink
Browse files

Allow periods in subPrefix

  • Loading branch information...
1 parent 50dd312 commit 5a18f3d0029e286ab14d501c477df71aa66d595b @mangtronix mangtronix committed Oct 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 BookReaderIA/datanode/BookReaderMeta.inc.php
@@ -397,7 +397,7 @@ function previewURL($page, $metadata) {
function imageFilePath($leafNum, $subPrefix, $format) {
$pathParts = pathinfo($subPrefix);
- $almostIdentifier = $pathParts['filename'];
+ $almostIdentifier = $pathParts['basename'];
return sprintf("%s_%s/%s_%04d.%s", $almostIdentifier, $format, $almostIdentifier, intval($leafNum), $format);
}

0 comments on commit 5a18f3d

Please sign in to comment.