From 10f77367d80a0f9fbdc95c131ca36e8a51ce1bef Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Sat, 3 Apr 2010 10:57:54 +0000 Subject: Tweak for PHP5.3 compatibility - I suspect my thumbnail generation problem is php5.3 related but this did not fix it. --- plugins/processor.gd.php | 6 +++--- plugins/processor.imagick.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/processor.gd.php b/plugins/processor.gd.php index fb80c5c..ccf75ea 100644 --- a/plugins/processor.gd.php +++ b/plugins/processor.gd.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 ) = explode( '/', strtolower( $itype )); } if( $mimeExt = preg_replace( "!^(x-)?(jpeg|png|gif)$!", "$2", $mimeExt )) { @@ -223,7 +223,7 @@ function liberty_imagick2_resize_image( &$pFileHash ) { if( $gBitSystem->isFeatureActive( 'liberty_thumbnail_format' )) { $mimeExt = $gBitSystem->getConfig( 'liberty_thumbnail_format' ); } else { - list( $type, $mimeExt ) = split( '/', strtolower( $pFileHash['type'] )); + list( $type, $mimeExt ) = explode( '/', strtolower( $pFileHash['type'] )); } if( preg_match( "!(png|gif)!", $mimeExt )) { -- cgit v1.3