@@ 665-672 (lines=8) @@ | ||
662 | } else { |
|
663 | // its not an update. maybe a reactivation? |
|
664 | if (get_option($activation_indicator_option_name, false)) { |
|
665 | if ($version_is_higher === -1) { |
|
666 | $req_type = EE_System::req_type_downgrade; |
|
667 | } else if ($version_is_higher === 0) { |
|
668 | //we've seen this version before, but it's an activation. must be a reactivation |
|
669 | $req_type = EE_System::req_type_reactivation; |
|
670 | } else {//$version_is_higher === 1 |
|
671 | $req_type = EE_System::req_type_upgrade; |
|
672 | } |
|
673 | delete_option($activation_indicator_option_name); |
|
674 | } else { |
|
675 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
@@ 674-684 (lines=11) @@ | ||
671 | $req_type = EE_System::req_type_upgrade; |
|
672 | } |
|
673 | delete_option($activation_indicator_option_name); |
|
674 | } else { |
|
675 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
676 | if ($version_is_higher === -1) { |
|
677 | $req_type = EE_System::req_type_downgrade; |
|
678 | } else if ($version_is_higher === 0) { |
|
679 | //we've seen this version before and it's not an activation. its normal request |
|
680 | $req_type = EE_System::req_type_normal; |
|
681 | } else {//$version_is_higher === 1 |
|
682 | $req_type = EE_System::req_type_upgrade; |
|
683 | } |
|
684 | } |
|
685 | } |
|
686 | } else { |
|
687 | //brand new install |