diff --git a/help.php b/help.php index f46e1c8..3ac05c1 100644 --- a/help.php +++ b/help.php @@ -1,5 +1,6 @@ parse($readmeContent); -echo $readmeHtml; \ No newline at end of file +if(null !== $readmeContent) { + echo rex_markdown::factory()->parse($readmeContent); +} \ No newline at end of file diff --git a/install.php b/install.php index ac84bfc..f4072ba 100644 --- a/install.php +++ b/install.php @@ -25,13 +25,13 @@ $modules = []; $modules[] = new D2UModule('60-1', 'D2U Guestbook - Gästebuch mit Bootstrap 4 Tabs', - 14); + 15); $modules[] = new D2UModule('60-2', 'D2U Guestbook - Infobox Bewertung', 4); $modules[] = new D2UModule('60-3', 'D2U Guestbook - Gästebuch ohne Tabs', - 11); + 12); $d2u_module_manager = new D2UModuleManager($modules, '', 'd2u_guestbook'); $d2u_module_manager->autoupdate(); } diff --git a/lib/d2u_guestbook_module_manager.php b/lib/d2u_guestbook_module_manager.php index 9551016..9e9ab01 100644 --- a/lib/d2u_guestbook_module_manager.php +++ b/lib/d2u_guestbook_module_manager.php @@ -15,13 +15,13 @@ public static function getModules() $modules = []; $modules[] = new D2UModule('60-1', 'D2U Guestbook - Gästebuch mit Bootstrap 4 Tabs', - 14); + 15); $modules[] = new D2UModule('60-2', 'D2U Guestbook - Infobox Bewertung', 4); $modules[] = new D2UModule('60-3', 'D2U Guestbook - Gästebuch ohne Tabs', - 11); + 12); return $modules; } } diff --git a/modules/60/1/output.php b/modules/60/1/output.php index 19c7734..d82caab 100644 --- a/modules/60/1/output.php +++ b/modules/60/1/output.php @@ -192,11 +192,10 @@ function d2u_guestbook_module_60_1_click_stars(wert) { $yform = new rex_yform(); $yform->setFormData(trim($form_data)); -$yform->setObjectparams('csrf_protection', false); $yform->setObjectparams('Error-occured', $tag_open .'d2u_guestbook_form_validate_title'. $tag_close); $yform->setObjectparams('form_action', rex_getUrl(rex_article::getCurrentId())); $yform->setObjectparams('form_anchor', 'tab_write'); -$yform->setObjectparams('form_name', 'd2u_guestbook_module_60_1_'. random_int(1, 100)); +$yform->setObjectparams('form_name', 'd2u_guestbook_module_60_1_'. $this->getCurrentSlice()->getId()); /** @phpstan-ignore-line */ $yform->setObjectparams('real_field_names', true); // action - showtext diff --git a/modules/60/3/output.php b/modules/60/3/output.php index 9986b28..e169e70 100644 --- a/modules/60/3/output.php +++ b/modules/60/3/output.php @@ -79,10 +79,9 @@ function d2u_guestbook_module_60_3_click_stars(wert) { $yform = new rex_yform(); $yform->setFormData(trim($form_data)); - $yform->setObjectparams('csrf_protection', false); $yform->setObjectparams('Error-occured', $tag_open .'d2u_guestbook_form_validate_title'. $tag_close); $yform->setObjectparams('form_action', rex_getUrl(rex_article::getCurrentId(), null, ['entry' => 'add'])); - $yform->setObjectparams('form_name', 'd2u_guestbook_module_60_3_'. random_int(1, 100)); + $yform->setObjectparams('form_name', 'd2u_guestbook_module_60_3_'. $this->getCurrentSlice()->getId()); /** @phpstan-ignore-line */ $yform->setObjectparams('real_field_names', true); // action - showtext diff --git a/pages/setup.php b/pages/setup.php index 9151a6c..85dbee1 100644 --- a/pages/setup.php +++ b/pages/setup.php @@ -57,9 +57,10 @@

Support

Fehlermeldungen bitte im GitHub Repository melden.

Changelog

-

1.0.12-DEV:

+

1.0.12:

1.0.11: