Fix text extraction on DjVu so that it works beyond first call.
authorBrian Wolff <bawolff+wn@gmail.com>
Fri, 6 Dec 2013 19:39:01 +0000 (15:39 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Fri, 6 Dec 2013 19:39:01 +0000 (15:39 -0400)
commit6f25260a8254080a6ea6423b5853985ca4df3187
treef94e6b66a5a2b1ddb75fc696f5fea6f5ae31b4b3
parent96ddd951fb7047607fc7347d18e28588ec974c5c
Fix text extraction on DjVu so that it works beyond first call.

This was caching the metadata tree in-process, but it was
returning this cache even for calls for things other then this
item.

As a result, if you did $file->getHandler()->getPageText( $file, 2 )
twice in a single request, the second time it would return false.

Change-Id: I6ee4dce3177c0898e98210d7471cfadc1108ca52
includes/media/DjVu.php