summaryrefslogtreecommitdiff
path: root/views/admin/modulelist.phtml
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-09-28 13:26:13 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-09-28 13:26:13 +0200
commitb5622b3f25a74b8ce1148a7c62b4c1f30f064957 (patch)
tree7872537511d7867738d72ece8f327e2e6787722f /views/admin/modulelist.phtml
parent933104c628f72ac7cfc09ceb75d624c133fd78e2 (diff)
Modulübersicht: Beta nur in der verfügbaren Version, version_latest bleibt stabil4.6.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/admin/modulelist.phtml')
-rw-r--r--views/admin/modulelist.phtml10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/admin/modulelist.phtml b/views/admin/modulelist.phtml
index bfcf77e..59750bd 100644
--- a/views/admin/modulelist.phtml
+++ b/views/admin/modulelist.phtml
@@ -42,7 +42,7 @@
<?php foreach ($wpsg_update_data['modulinfo'] as $modul_key => $modul_info) { ?>
<?php /* Installierte Modulversion; Module ohne deklariertes $version liefern null -> vor PHP-8-Warnungen und version_compare()-Deprecations schuetzen. */ ?>
<?php $modul_version_installed = ($this->shop->hasModInstalled($modul_key) ? ($this->shop->arAllModule[$modul_key]->version ?? '') : ''); ?>
- <?php if (isset($arBetaModule[$modul_key])) $modul_info['version'] = $modul_info['version_latest'] = $beta_version; ?>
+ <?php $modul_version_available = (isset($arBetaModule[$modul_key]))?$beta_version:$modul_info['version']; ?>
<tr style="font-style:normal;" class="<?php
if ($modul_info['free'] === true) echo 'active';
@@ -118,21 +118,21 @@
}
- echo $modul_info['version'];
+ echo $modul_version_available;
- if ($this->shop->hasModInstalled($modul_key) && $modul_info['version'] === $modul_version_installed)
+ if ($this->shop->hasModInstalled($modul_key) && $modul_version_available === $modul_version_installed)
{
echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
}
- else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], WPSG_VERSION) > 0)
+ else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_version_available, WPSG_VERSION) > 0)
{
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong><br />'.wpsg_translate(__('<a href="#1#">wpShopGermany Update</a> notwendig', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php');
}
- else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], $modul_version_installed) > 0)
+ else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_version_available, $modul_version_installed) > 0)
{
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';