Browse Source

ISLANDORA-204: Strict warning is no longer issued.

pull/105/head
Nigel Banks 14 years ago
parent
commit
ef9a30b54c
  1. 3
      MimeClass.inc

3
MimeClass.inc

@ -223,7 +223,8 @@ class MimeClass {
*/ */
public function get_mimetype( $filename, $debug = FALSE ) { public function get_mimetype( $filename, $debug = FALSE ) {
$ext = strtolower( array_pop( explode( '.', $filename ) ) ); $file_name_and_extension = explode( '.', $filename );
$ext = strtolower( array_pop( $file_name_and_extension ) );
if ( ! empty( $this->private_mime_types[$ext] ) ) { if ( ! empty( $this->private_mime_types[$ext] ) ) {
if ( TRUE === $debug ) if ( TRUE === $debug )

Loading…
Cancel
Save