@@ 525-532 (lines=8) @@ | ||
522 | } else { |
|
523 | // its not an update. maybe a reactivation? |
|
524 | if (get_option($activation_indicator_option_name, false)) { |
|
525 | if ($version_is_higher === -1) { |
|
526 | $req_type = EE_System::req_type_downgrade; |
|
527 | } elseif ($version_is_higher === 0) { |
|
528 | //we've seen this version before, but it's an activation. must be a reactivation |
|
529 | $req_type = EE_System::req_type_reactivation; |
|
530 | } else {//$version_is_higher === 1 |
|
531 | $req_type = EE_System::req_type_upgrade; |
|
532 | } |
|
533 | delete_option($activation_indicator_option_name); |
|
534 | } else { |
|
535 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
@@ 534-544 (lines=11) @@ | ||
531 | $req_type = EE_System::req_type_upgrade; |
|
532 | } |
|
533 | delete_option($activation_indicator_option_name); |
|
534 | } else { |
|
535 | //we've seen this version before and the activation indicate doesn't show it was just activated |
|
536 | if ($version_is_higher === -1) { |
|
537 | $req_type = EE_System::req_type_downgrade; |
|
538 | } elseif ($version_is_higher === 0) { |
|
539 | //we've seen this version before and it's not an activation. its normal request |
|
540 | $req_type = EE_System::req_type_normal; |
|
541 | } else {//$version_is_higher === 1 |
|
542 | $req_type = EE_System::req_type_upgrade; |
|
543 | } |
|
544 | } |
|
545 | } |
|
546 | } else { |
|
547 | //brand new install |