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