]> git.mxchange.org Git - friendica-addons.git/blobdiff - js_upload/js_upload.php
[various] Remove App dependency from hook functions
[friendica-addons.git] / js_upload / js_upload.php
index e93ce7d6e26077e92c3928e903f44f99cb2e13f3..089cb7e214802739e5a921487bda2726adee421f 100644 (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;