deprecate html_form()

encourage plugin devs to use new Form class
This commit is contained in:
Satoshi Sahara 2020-09-11 17:50:01 +09:00
parent bafe746883
commit 8a5f08af07
1 changed files with 2 additions and 0 deletions

View File

@ -822,6 +822,7 @@ function html_mktocitem($link, $text, $level, $hash='#') {
* @param Doku_Form $form The form
*/
function html_form($name, $form) {
dbg_deprecated('use dokuwiki\Form\Form instead of Doku_Form');
// Safety check in case the caller forgets.
$form->endFieldset();
Event::createAndTrigger('HTML_'.strtoupper($name).'FORM_OUTPUT', $form, 'html_form_output', false);
@ -834,6 +835,7 @@ function html_form($name, $form) {
* @param Doku_Form $form The form
*/
function html_form_output($form) {
dbg_deprecated('use dokuwiki\Form\Form::toHTML()');
$form->printForm();
}