Reset content message for 404 error as in staticpage plugin

This commit is contained in:
Don Chambers 2017-03-30 21:23:04 -05:00
parent 326c8dabae
commit 29864fc086
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
1.21
-----
* Reset content message, as also needed in staticpage plugin.
1.20
-----
* change xhtml to html for case: radio, checkbox and select

View file

@ -29,7 +29,7 @@ class serendipity_event_contactform extends serendipity_event {
$propbag->add('event_hooks', array('entries_header' => true, 'entry_display' => true, 'genpage' => true));
$propbag->add('configuration', array('permalink', 'pagetitle', 'backend_title', 'email', 'subject', 'counter', 'intro', 'sent', 'articleformat', 'dynamic_tpl', 'dynamic_fields', 'dynamic_fields_tpl', 'dynamic_fields_desc'));
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.20');
$propbag->add('version', '1.21');
$propbag->add('requirements', array(
'serendipity' => '1.3',
'smarty' => '2.6.7',
@ -366,6 +366,8 @@ class serendipity_event_contactform extends serendipity_event {
function show() {
global $serendipity;
$serendipity['content_message'] = ''; // Reset message for 404 error handling which is now overriden
if ($this->selected()) {
$form_fields = array();