@@ 717-724 (lines=8) @@ | ||
714 | } else { |
|
715 | // its not an update. maybe a reactivation? |
|
716 | if (get_option($activation_indicator_option_name, false)) { |
|
717 | if ($version_is_higher === -1) { |
|
718 | $req_type = EE_System::req_type_downgrade; |
|
719 | } elseif ($version_is_higher === 0) { |
|
720 | // we've seen this version before, but it's an activation. must be a reactivation |
|
721 | $req_type = EE_System::req_type_reactivation; |
|
722 | } else {// $version_is_higher === 1 |
|
723 | $req_type = EE_System::req_type_upgrade; |
|
724 | } |
|
725 | delete_option($activation_indicator_option_name); |
|
726 | } else { |
|
727 | // we've seen this version before and the activation indicate doesn't show it was just activated |
|
@@ 726-736 (lines=11) @@ | ||
723 | $req_type = EE_System::req_type_upgrade; |
|
724 | } |
|
725 | delete_option($activation_indicator_option_name); |
|
726 | } else { |
|
727 | // we've seen this version before and the activation indicate doesn't show it was just activated |
|
728 | if ($version_is_higher === -1) { |
|
729 | $req_type = EE_System::req_type_downgrade; |
|
730 | } elseif ($version_is_higher === 0) { |
|
731 | // we've seen this version before and it's not an activation. its normal request |
|
732 | $req_type = EE_System::req_type_normal; |
|
733 | } else {// $version_is_higher === 1 |
|
734 | $req_type = EE_System::req_type_upgrade; |
|
735 | } |
|
736 | } |
|
737 | } |
|
738 | } else { |
|
739 | // brand new install |