Daniel-KM / Omeka-plugin-UniversalViewer

Plugin for Omeka that adds the IIIF specifications in order to act like an IIPImage server, and the UniversalViewer, a unified online player for any file. It can display books, images, maps, audio, movies, pdf, 3D views, and anything else as long as the appropriate extensions are installed.
Other
23 stars 20 forks source link

Fix bug introduced in commit 47f611b #37

Closed julia-bauder closed 6 years ago

julia-bauder commented 6 years ago

Commit 47f611b changed line 285 to read "$mediaType = $media->mediaType();". $media is not defined, which was causing a fatal error:

PHP Notice: Undefined variable: media in /var/www/html/example-site/plugins/UniversalViewer/views/helpers/IiifManifest.php on line 285 PHP Fatal error: Call to a member function mediaType() on a non-object in /var/www/html/example-site/plugins/UniversalViewer/views/helpers/IiifManifest.php on line 285

Changing line 285 to "$mediaType = $file->mime_type;", as $mediaType is defined elsewhere in the code, fixed the error.