fix for read file by using the view object this will fix reading encrypted files
Merge pull request #1179 from owncloud/fix_gallery_readfile

gallery: fix for read file