diff options
| author | Christian Fowler <spider@viovio.com> | 2010-03-04 20:55:15 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2010-03-04 20:55:15 +0000 |
| commit | 7318f898cff209bb239663245b2c81a7befb2f6b (patch) | |
| tree | f835ee2a0ad3fa9969b44db9134d3122a1c60c48 | |
| parent | 8f3a42cde64848c3510fdf9315b1a4bb16293262 (diff) | |
| download | liberty-7318f898cff209bb239663245b2c81a7befb2f6b.tar.gz liberty-7318f898cff209bb239663245b2c81a7befb2f6b.tar.bz2 liberty-7318f898cff209bb239663245b2c81a7befb2f6b.zip | |
update deprecated split with preg_split
| -rw-r--r-- | liberty_lib.php | 4 | ||||
| -rw-r--r-- | 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 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/liberty_lib.php,v 1.51 2009/10/23 21:10:49 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/liberty_lib.php,v 1.52 2010/03/04 20:55:15 spiderr Exp $ * @package liberty * @subpackage functions */ @@ -709,7 +709,7 @@ function liberty_generate_thumbnails( &$pFileHash ) { if( $gBitSystem->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 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_liberty/plugins/processor.magickwand.php,v 1.22 2009/01/03 09:37:04 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_liberty/plugins/processor.magickwand.php,v 1.23 2010/03/04 20:55:15 spiderr Exp $ * * Image processor - extension: php-magickwand * @package liberty @@ -79,7 +79,7 @@ function liberty_magickwand_resize_image( &$pFileHash ) { if( $gBitSystem->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 ); |
