From a3a4af66e0cf8b8b1c31f5e5c165eefdae03f7f9 Mon Sep 17 00:00:00 2001 From: jlbeer Date: Thu, 10 Sep 2026 11:23:30 +0200 Subject: - Bugfix: Modulübersicht warf einen Error, wenn ein Modul kein doc_url liefert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wpsg_isSizedString() nimmt sein Argument per Referenz, das @ davor machte daraus einen Wert -> "Argument #1 could not be passed by reference" unter PHP 8. Ausserdem ein versehentlich eingefuegtes "Okay" vor dem PHP-Tag entfernt. Co-Authored-By: Claude Opus 5 (1M context) --- views/admin/modulelist.phtml | 317 ++++++++++++++++++++++--------------------- 1 file changed, 159 insertions(+), 158 deletions(-) (limited to 'views') diff --git a/views/admin/modulelist.phtml b/views/admin/modulelist.phtml index cc3591b..ade58aa 100644 --- a/views/admin/modulelist.phtml +++ b/views/admin/modulelist.phtml @@ -1,158 +1,159 @@ -shop = &$this; - - } - else - { - - $source = 'licence'; - - } - -?> - - - - $modul_info) { if ($modul_info['active'] !== true) unset($wpsg_update_data['modulinfo'][$modul_key]); } */ ?> - - - - - - - - - - - - $modul_info) { ?> - - - - - - - - -
- - shop->hasModInstalled($modul_key)) { ?> - - - - - - shop->hasModInstalled($modul_key)) { ?> - - - - - -
- - -
- - shop->hasModInstalled($modul_key)) { ?> - shop->arAllModule[$modul_key]->version; ?> - - - - - - - - - - - - - - - - - - - shop->hasModInstalled($modul_key)) { ?> - -
- - Version installieren', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); ?> - - Demo installieren', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); ?> - - - - -
shop->arAllModule[$modul_key]->version) < 0) - { - - echo $modul_info['version_latest']; - - echo ' - '.__('neue Version verfügbar', 'wpsg').''; - echo '
'; - echo wpsg_translate(__('Version installieren.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); - - echo '

'; - - } - - echo $modul_info['version']; - - if ($this->shop->hasModInstalled($modul_key) && $modul_info['version'] === $this->shop->arAllModule[$modul_key]->version) - { - - echo ' - '.__('aktuell', 'wpsg').''; - - } - else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], WPSG_VERSION) > 0) - { - - echo ' - '.__('neue Version verfügbar', 'wpsg').'
'.wpsg_translate(__('wpShopGermany Update notwendig', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php'); - - } - else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], $this->shop->arAllModule[$modul_key]->version) > 0) - { - - echo ' - '.__('neue Version verfügbar', 'wpsg').''; - - if ($modul_info['active'] === true) - { - - echo '
'; - echo wpsg_translate(__('Version installieren.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); - - } - - } - - ?>
- - - -

- - - - - - +shop = &$this; + + } + else + { + + $source = 'licence'; + + } + +?> + + + + $modul_info) { if ($modul_info['active'] !== true) unset($wpsg_update_data['modulinfo'][$modul_key]); } */ ?> + + + + + + + + + + + + $modul_info) { ?> + + + + + + + + +
+ + shop->hasModInstalled($modul_key)) { ?> + + + + + + shop->hasModInstalled($modul_key)) { ?> + + + + + + +
+ + +
+ + shop->hasModInstalled($modul_key)) { ?> + shop->arAllModule[$modul_key]->version; ?> + + + + + + + + + + + + + + + + + + + shop->hasModInstalled($modul_key)) { ?> + +
+ + Version installieren', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); ?> + + Demo installieren', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); ?> + + + + +
shop->arAllModule[$modul_key]->version) < 0) + { + + echo $modul_info['version_latest']; + + echo ' - '.__('neue Version verfügbar', 'wpsg').''; + echo '
'; + echo wpsg_translate(__('Version installieren.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); + + echo '

'; + + } + + echo $modul_info['version']; + + if ($this->shop->hasModInstalled($modul_key) && $modul_info['version'] === $this->shop->arAllModule[$modul_key]->version) + { + + echo ' - '.__('aktuell', 'wpsg').''; + + } + else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], WPSG_VERSION) > 0) + { + + echo ' - '.__('neue Version verfügbar', 'wpsg').'
'.wpsg_translate(__('wpShopGermany Update notwendig', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php'); + + } + else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], $this->shop->arAllModule[$modul_key]->version) > 0) + { + + echo ' - '.__('neue Version verfügbar', 'wpsg').''; + + if ($modul_info['active'] === true) + { + + echo '
'; + echo wpsg_translate(__('Version installieren.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key.'&source='.$source); + + } + + } + + ?>
+ + + +

+ + + + + + -- cgit v1.2.3