@@ 618-625 (lines=8) @@ | ||
615 | } else { |
|
616 | // its not an update. maybe a reactivation? |
|
617 | if (get_option($activation_indicator_option_name, false)) { |
|
618 | if ($version_is_higher === -1) { |
|
619 | $req_type = EE_System::req_type_downgrade; |
|
620 | } elseif ($version_is_higher === 0) { |
|
621 | //we've seen this version before, but it's an activation. must be a reactivation |
|
622 | $req_type = EE_System::req_type_reactivation; |
|
623 | } else {//$version_is_higher === 1 |
|
624 | $req_type = EE_System::req_type_upgrade; |
|
625 | } |
|
626 | delete_option($activation_indicator_option_name); |
|
627 | } else { |
|
628 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
@@ 627-637 (lines=11) @@ | ||
624 | $req_type = EE_System::req_type_upgrade; |
|
625 | } |
|
626 | delete_option($activation_indicator_option_name); |
|
627 | } else { |
|
628 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
629 | if ($version_is_higher === -1) { |
|
630 | $req_type = EE_System::req_type_downgrade; |
|
631 | } elseif ($version_is_higher === 0) { |
|
632 | //we've seen this version before and it's not an activation. its normal request |
|
633 | $req_type = EE_System::req_type_normal; |
|
634 | } else {//$version_is_higher === 1 |
|
635 | $req_type = EE_System::req_type_upgrade; |
|
636 | } |
|
637 | } |
|
638 | } |
|
639 | } else { |
|
640 | //brand new install |