<?php /** @var rex_addon $this */ $core = rex_request('core', 'boolean'); $addonkey = rex_request('addonkey', 'string'); $coreVersions = []; $addons = []; $message = rex_api_function::getMessage(); try { $coreVersions = rex_api_install_core_update::getVersions(); $addons = rex_install_packages::getUpdatePackages(); } catch (rex_functional_exception $e) { $message .= rex_view::warning($e->getMessage()); $addonkey = ''; } if ($core && !empty($coreVersions)) { $panel = ' <table class="table table-striped table-hover"> <thead> <tr> <th class="rex-table-icon"> </th> <th>' . $this->i18n('version') . '</th> <th>' . $this->i18n('description') . '</th> <th class="rex-table-action"></th> </tr> </thead> <tbody>'; foreach ($coreVersions as $id => $version) { $panel .= ' <tr> <td class="rex-table-icon"><i class="rex-icon rex-icon-package"></i></td>