|
@@ 1674-1684 (lines=11) @@
|
| 1671 |
|
} |
| 1672 |
|
|
| 1673 |
|
// no install found for this version, lets see if one exists for another |
| 1674 |
|
if ($packageInfo['can_install'] === false && $install->exists('@for') && empty($_SESSION['version_emulate'])) |
| 1675 |
|
{ |
| 1676 |
|
$reset = true; |
| 1677 |
|
|
| 1678 |
|
// Get the highest install version that is available from the package |
| 1679 |
|
foreach ($installs as $install) |
| 1680 |
|
{ |
| 1681 |
|
$packageInfo['can_emulate_install'] = matchHighestPackageVersion($install->fetch('@for'), $reset, $the_version); |
| 1682 |
|
$reset = false; |
| 1683 |
|
} |
| 1684 |
|
} |
| 1685 |
|
} |
| 1686 |
|
// An already installed, but old, package. Can we upgrade it? |
| 1687 |
|
elseif ($packageInfo['is_installed'] && !$packageInfo['is_current'] && $packageInfo['xml']->exists('upgrade')) |
|
@@ 1719-1729 (lines=11) @@
|
| 1716 |
|
} |
| 1717 |
|
|
| 1718 |
|
// no uninstall found for this version, lets see if one exists for another |
| 1719 |
|
if ($packageInfo['can_uninstall'] === false && $uninstall->exists('@for') && empty($_SESSION['version_emulate'])) |
| 1720 |
|
{ |
| 1721 |
|
$reset = true; |
| 1722 |
|
|
| 1723 |
|
// Get the highest install version that is available from the package |
| 1724 |
|
foreach ($uninstalls as $uninstall) |
| 1725 |
|
{ |
| 1726 |
|
$packageInfo['can_emulate_uninstall'] = matchHighestPackageVersion($uninstall->fetch('@for'), $reset, $the_version); |
| 1727 |
|
$reset = false; |
| 1728 |
|
} |
| 1729 |
|
} |
| 1730 |
|
} |
| 1731 |
|
|
| 1732 |
|
// Modification. |