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