@@ 455-462 (lines=8) @@ | ||
452 | } else { |
|
453 | // its not an update. maybe a reactivation? |
|
454 | if( get_option( $activation_indicator_option_name, FALSE ) ){ |
|
455 | if ( $version_is_higher === -1 ){ |
|
456 | $req_type = EE_System::req_type_downgrade; |
|
457 | }elseif( $version_is_higher === 0 ){ |
|
458 | //we've seen this version before, but it's an activation. must be a reactivation |
|
459 | $req_type = EE_System::req_type_reactivation; |
|
460 | }else{//$version_is_higher === 1 |
|
461 | $req_type = EE_System::req_type_upgrade; |
|
462 | } |
|
463 | delete_option( $activation_indicator_option_name ); |
|
464 | } else { |
|
465 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
@@ 464-474 (lines=11) @@ | ||
461 | $req_type = EE_System::req_type_upgrade; |
|
462 | } |
|
463 | delete_option( $activation_indicator_option_name ); |
|
464 | } else { |
|
465 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
466 | if ( $version_is_higher === -1 ){ |
|
467 | $req_type = EE_System::req_type_downgrade; |
|
468 | }elseif( $version_is_higher === 0 ){ |
|
469 | //we've seen this version before and it's not an activation. its normal request |
|
470 | $req_type = EE_System::req_type_normal; |
|
471 | }else{//$version_is_higher === 1 |
|
472 | $req_type = EE_System::req_type_upgrade; |
|
473 | } |
|
474 | } |
|
475 | } |
|
476 | } else { |
|
477 | //brand new install |