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