Skip to content

Commit

Permalink
Correct legacy collection cover check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Sisk committed Jan 22, 2013
1 parent 8812253 commit 432157b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion -/php/legacy.php
Expand Up @@ -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}/" . $legacy_config[ 'term_meta' ][ 'collection' ][ $v->term_id ][ 'files' ][ 'full' ][ 0 ], $collection_id );
$image_id = empty( $legacy_config[ 'term_meta' ][ 'collection' ][ $v->term_id ][ 'files' ][ 'full' ][ 0 ] ) ? 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 );
Expand Down

0 comments on commit 432157b

Please sign in to comment.