[various] Remove App dependency from hook functions

This commit is contained in:
Hypolite Petovan 2023-01-13 21:16:09 -05:00
parent b53914ee11
commit 39c654da00
87 changed files with 419 additions and 451 deletions

View file

@ -25,7 +25,7 @@ function js_upload_install()
Hook::register('photo_post_end', __FILE__, 'js_upload_post_end');
}
function js_upload_form(App $a, array &$b)
function js_upload_form(array &$b)
{
$b['default_upload'] = false;
@ -43,7 +43,7 @@ function js_upload_form(App $a, array &$b)
]);
}
function js_upload_post_init(App $a, array &$b)
function js_upload_post_init(array &$b)
{
global $js_upload_result, $js_upload_jsonresponse;
@ -69,7 +69,7 @@ function js_upload_post_init(App $a, array &$b)
$js_upload_result = $result;
}
function js_upload_post_file(App $a, array &$b)
function js_upload_post_file(array &$b)
{
global $js_upload_result;
@ -81,7 +81,7 @@ function js_upload_post_file(App $a, array &$b)
}
function js_upload_post_end(App $a, int &$b)
function js_upload_post_end(int &$b)
{
global $js_upload_jsonresponse;