- added more type-hints
- cleaned up some files (curly braces, spaces)
This commit is contained in:
Roland Häder 2022-06-23 07:16:22 +02:00
parent a1e17968d1
commit 04df7f6e05
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
74 changed files with 603 additions and 529 deletions

View file

@ -20,7 +20,7 @@ function mathjax_install()
Hook::register('addon_settings_post', __FILE__, 'mathjax_settings_post');
}
function mathjax_settings_post($a)
function mathjax_settings_post(App $a)
{
if (!local_user() || empty($_POST['mathjax-submit'])) {
return;
@ -50,7 +50,7 @@ function mathjax_settings(App $a, array &$data)
];
}
function mathjax_footer(App $a, &$b)
function mathjax_footer(App $a, array &$b)
{
// if the visitor of the page is not a local_user, use MathJax
// otherwise check the users settings.