- if a <addon>_module() function is empty, it is more a statement and not a
  real function
This commit is contained in:
Roland Häder 2022-06-24 23:27:58 +02:00
parent e895b55f6d
commit 3ab46781b1
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
21 changed files with 259 additions and 198 deletions

View file

@ -58,11 +58,11 @@ function mailstream_check_version()
}
/**
* This function indicates a module that can be wrapped in the LegacyModule class
* This is a statement rather than an actual function definition. The simple
* existence of this method is checked to figure out if the addon offers a
* module.
*/
function mailstream_module()
{
}
function mailstream_module() {}
/**
* Adds an item in "addon features" in the admin menu of the site
@ -70,7 +70,7 @@ function mailstream_module()
* @param App $a App object (unused)
* @param string $o HTML form data
*/
function mailstream_addon_admin(App $a, &$o)
function mailstream_addon_admin(App $a, string &$o)
{
$frommail = DI::config()->get('mailstream', 'frommail');
$template = Renderer::getMarkupTemplate('admin.tpl', 'addon/mailstream/');