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