diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2022-05-20 06:32:46 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2022-05-20 06:32:46 +0000 |
| commit | 843ae68965ec14207034d34afa9a208995eb01ec (patch) | |
| tree | 204d0823ab1c7987c96510ca1998f2d3a84682b6 /views/mods | |
| parent | 354ee8fa1c51bcced4a2b0ab06944e547c9336f7 (diff) | |
- Bugfix: Verwendung unter PHP8 erzeugt keinen Fehler mehr wenn kein Winkel bei den Textfeldern Gutscheinprodukt definiert ist
- Feature: Neue Platzhalter für Liefer- und Rechnungsadresse
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7990 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_abo/settings_edit.phtml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/views/mods/mod_abo/settings_edit.phtml b/views/mods/mod_abo/settings_edit.phtml index a69cddf..22829e8 100644 --- a/views/mods/mod_abo/settings_edit.phtml +++ b/views/mods/mod_abo/settings_edit.phtml @@ -127,8 +127,15 @@ <span><?php echo __('Letzter Lauf: ', 'wpsg'); ?><?php echo wpsg_formatTimestamp($this->get_option('wpsg_mod_abo_cron_lastrun'), false, true); ?></span><br />
<span>
- <?php echo __('Status: ', 'wpsg'); ?><?php echo (($this->get_option('wpsg_mod_abo_cron_run') === '1')?_('Läuft gerade'):_('Wartend')); ?>
- <?php if ($this->get_option('wpsg_mod_abo_cron_run') === '1') { ?>
+ <?php
+
+ $upload_dir = \wp_upload_dir();
+ $pid_file = $upload_dir['basedir'].'/wpsg_cron_abo';
+
+ echo __('Status: ', 'wpsg');
+
+ ?><?php echo (($this->get_option('wpsg_mod_abo_cron_run') === '1')?_('Läuft gerade'):_('Wartend')); ?>
+ <?php if ($this->get_option('wpsg_mod_abo_cron_run') === '1' || file_exists($pid_fileJa)) { ?>
(<?php echo __('Start: ', 'wpsg'); ?><?php echo wpsg_formatTimestamp($this->get_option('wpsg_mod_abo_cron_start'), false, true); ?>)
<a href="<?php echo WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_abo&subaction=resetCron&noheader=1'; ?>"><?php echo __('Zurücksetzen', 'wpsg'); ?></a>
<?php } ?>
|
