Strae/Drupal-ViewerJs — pull request #2 by abuhamza (2014-12-16 16:30:20+00:00)
Title: Fix the way to retrieve file extension.

If the file name contains point before the extension, this way "list(, $extension) = explode('.', $file['uri']);" use first string after the point as extension. We should use the last point to determine the file extension.
Exemple :
file.one.pdf ==> is pdf
file.pdf ==> is also pdf