@@ 436-443 (lines=8) @@ | ||
433 | } else { |
|
434 | // its not an update. maybe a reactivation? |
|
435 | if( get_option( $activation_indicator_option_name, FALSE ) ){ |
|
436 | if ( $version_is_higher === -1 ){ |
|
437 | $req_type = EE_System::req_type_downgrade; |
|
438 | }elseif( $version_is_higher === 0 ){ |
|
439 | //we've seen this version before, but it's an activation. must be a reactivation |
|
440 | $req_type = EE_System::req_type_reactivation; |
|
441 | }else{//$version_is_higher === 1 |
|
442 | $req_type = EE_System::req_type_upgrade; |
|
443 | } |
|
444 | delete_option( $activation_indicator_option_name ); |
|
445 | } else { |
|
446 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
@@ 445-455 (lines=11) @@ | ||
442 | $req_type = EE_System::req_type_upgrade; |
|
443 | } |
|
444 | delete_option( $activation_indicator_option_name ); |
|
445 | } else { |
|
446 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
447 | if ( $version_is_higher === -1 ){ |
|
448 | $req_type = EE_System::req_type_downgrade; |
|
449 | }elseif( $version_is_higher === 0 ){ |
|
450 | //we've seen this version before and it's not an activation. its normal request |
|
451 | $req_type = EE_System::req_type_normal; |
|
452 | }else{//$version_is_higher === 1 |
|
453 | $req_type = EE_System::req_type_upgrade; |
|
454 | } |
|
455 | } |
|
456 | } |
|
457 | } else { |
|
458 | //brand new install |