Skip to content
Browse files

Revert image key.

  • Loading branch information...
1 parent d74219b commit 40f11caf9d05203f0d0d56bcb49f86023ff3ddca Michael Sisk committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 -/php/legacy.php
View
2 -/php/legacy.php
@@ -867,7 +867,7 @@ private function upgrade3( $stage = 0 ) {
$collection_id = 'webcomic' . self::$config[ 'increment' ];
if ( 1 === intval( $stage ) ) {
- $image_id = empty( $legacy_config[ 'term_meta' ][ 'collection' ][ $v->term_id ][ 'files' ] ) ? 0 : self::update_media_library( dirname( $upload_dir[ 'basedir' ] ) . "/webcomic/{$v->slug}/" . array_shift( array_values( $legacy_config[ 'term_meta' ][ 'collection' ][ $v->term_id ][ 'files' ][ 'full' ] ) ), $collection_id );
+ $image_id = empty( $legacy_config[ 'term_meta' ][ 'collection' ][ $v->term_id ][ 'files' ] ) ? 0 : self::update_media_library( dirname( $upload_dir[ 'basedir' ] ) . "/webcomic/{$v->slug}/" . $legacy_config[ 'term_meta' ][ 'collection' ][ $v->term_id ][ 'files' ][ 'full' ][ 0 ], $collection_id );
$commerce_domestic_price = round( $legacy_config[ 'paypal_price_d' ] * ( 1 + .01 * $legacy_config[ 'term_meta' ][ 'collection' ][ $v->term_id ][ 'paypal' ][ 'price_d' ] ), 2 );
$commerce_international_price = round( $legacy_config[ 'paypal_price_i' ] * ( 1 + .01 * $legacy_config[ 'term_meta' ][ 'collection' ][ $v->term_id ][ 'paypal' ][ 'price_i' ] ), 2 );
$commerce_original_price = round( $legacy_config[ 'paypal_price_o' ] * ( 1 + .01 * $legacy_config[ 'term_meta' ][ 'collection' ][ $v->term_id ][ 'paypal' ][ 'price_o' ] ), 2 );

0 comments on commit 40f11ca

Please sign in to comment.
Something went wrong with that request. Please try again.