From 7318f898cff209bb239663245b2c81a7befb2f6b Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Thu, 4 Mar 2010 20:55:15 +0000 Subject: update deprecated split with preg_split --- liberty_lib.php | 4 ++-- plugins/processor.magickwand.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/liberty_lib.php b/liberty_lib.php index 3b001e6..a0182ad 100644 --- a/liberty_lib.php +++ b/liberty_lib.php @@ -1,6 +1,6 @@ isFeatureActive( 'liberty_thumbnail_format' )) { $mimeExt = $gBitSystem->getConfig( 'liberty_thumbnail_format' ); } else { - list( $type, $mimeExt ) = split( '/', strtolower( $pFileHash['type'] )); + list( $type, $mimeExt ) = preg_split( '#/#', strtolower( $pFileHash['type'] )); } if( preg_match( "!(png|gif)!", $mimeExt )) { diff --git a/plugins/processor.magickwand.php b/plugins/processor.magickwand.php index ca1a15f..6349018 100644 --- a/plugins/processor.magickwand.php +++ b/plugins/processor.magickwand.php @@ -1,6 +1,6 @@ isFeatureActive( 'liberty_thumbnail_format' )) { $mimeExt = $gBitSystem->getConfig( 'liberty_thumbnail_format' ); } else { - list( $type, $mimeExt ) = split( '/', strtolower( $itype )); + list( $type, $mimeExt ) = preg_split( '#/#', strtolower( $itype )); } $replaced = FALSE; $mimeExt = preg_replace( "!^(x-)?(jpeg|png|gif)$!", "$2", $mimeExt, -1, $replaced ); -- cgit v1.3