|
@@ 546-553 (lines=8) @@
|
| 543 |
|
} else { |
| 544 |
|
// its not an update. maybe a reactivation? |
| 545 |
|
if (get_option($activation_indicator_option_name, false)) { |
| 546 |
|
if ($version_is_higher === -1) { |
| 547 |
|
$req_type = EE_System::req_type_downgrade; |
| 548 |
|
} elseif ($version_is_higher === 0) { |
| 549 |
|
//we've seen this version before, but it's an activation. must be a reactivation |
| 550 |
|
$req_type = EE_System::req_type_reactivation; |
| 551 |
|
} else {//$version_is_higher === 1 |
| 552 |
|
$req_type = EE_System::req_type_upgrade; |
| 553 |
|
} |
| 554 |
|
delete_option($activation_indicator_option_name); |
| 555 |
|
} else { |
| 556 |
|
//we've seen this version before and the activation indicate doesn't show it was just activated |
|
@@ 555-565 (lines=11) @@
|
| 552 |
|
$req_type = EE_System::req_type_upgrade; |
| 553 |
|
} |
| 554 |
|
delete_option($activation_indicator_option_name); |
| 555 |
|
} else { |
| 556 |
|
//we've seen this version before and the activation indicate doesn't show it was just activated |
| 557 |
|
if ($version_is_higher === -1) { |
| 558 |
|
$req_type = EE_System::req_type_downgrade; |
| 559 |
|
} elseif ($version_is_higher === 0) { |
| 560 |
|
//we've seen this version before and it's not an activation. its normal request |
| 561 |
|
$req_type = EE_System::req_type_normal; |
| 562 |
|
} else {//$version_is_higher === 1 |
| 563 |
|
$req_type = EE_System::req_type_upgrade; |
| 564 |
|
} |
| 565 |
|
} |
| 566 |
|
} |
| 567 |
|
} else { |
| 568 |
|
//brand new install |