mirror of
https://github.com/friendica/friendica
synced 2025-04-30 05:04:22 +02:00
Replace global $a with BaseObject::getApp()
This commit is contained in:
parent
d0780ccf7d
commit
820afa2284
17 changed files with 51 additions and 56 deletions
|
@ -48,9 +48,11 @@ require_once 'include/items.php';
|
|||
* and ITEM_ID is the id of the item in the database that needs to be sent to others.
|
||||
*/
|
||||
|
||||
class Notifier {
|
||||
public static function execute($cmd, $item_id) {
|
||||
global $a;
|
||||
class Notifier
|
||||
{
|
||||
public static function execute($cmd, $item_id)
|
||||
{
|
||||
$a = \Friendica\BaseObject::getApp();
|
||||
|
||||
logger('notifier: invoked: '.$cmd.': '.$item_id, LOGGER_DEBUG);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue