mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Changes:
- added more type-hints - cleaned up some files (curly braces, spaces)
This commit is contained in:
parent
a1e17968d1
commit
04df7f6e05
74 changed files with 603 additions and 529 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue