Update Addon functions and calls
Update function names and calls for Addon class.
This commit is contained in:
parent
213f6ae1a1
commit
11cf36105c
73 changed files with 544 additions and 464 deletions
|
@ -15,6 +15,7 @@
|
|||
* information.
|
||||
*/
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
|
@ -50,7 +51,7 @@ function item_post(App $a) {
|
|||
killme();
|
||||
}
|
||||
|
||||
call_hooks('post_local_start', $_REQUEST);
|
||||
Addon::callHooks('post_local_start', $_REQUEST);
|
||||
// logger('postinput ' . file_get_contents('php://input'));
|
||||
logger('postvars ' . print_r($_REQUEST,true), LOGGER_DATA);
|
||||
|
||||
|
@ -772,7 +773,7 @@ function item_post(App $a) {
|
|||
killme();
|
||||
}
|
||||
|
||||
call_hooks('post_local',$datarray);
|
||||
Addon::callHooks('post_local',$datarray);
|
||||
|
||||
if (x($datarray, 'cancel')) {
|
||||
logger('mod_item: post cancelled by plugin.');
|
||||
|
@ -885,7 +886,7 @@ function item_post(App $a) {
|
|||
}
|
||||
}
|
||||
|
||||
call_hooks('post_local_end', $datarray);
|
||||
Addon::callHooks('post_local_end', $datarray);
|
||||
|
||||
if (strlen($emailcc) && $profile_uid == local_user()) {
|
||||
$erecips = explode(',', $emailcc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue