mirror of
https://github.com/friendica/friendica
synced 2025-04-27 16:30:10 +00: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
|
@ -13,9 +13,11 @@ use dba;
|
|||
|
||||
require_once 'include/dba.php';
|
||||
|
||||
Class Cron {
|
||||
public static function execute($parameter = '', $generation = 0) {
|
||||
global $a;
|
||||
class Cron
|
||||
{
|
||||
public static function execute($parameter = '', $generation = 0)
|
||||
{
|
||||
$a = \Friendica\BaseObject::getApp();
|
||||
|
||||
// Poll contacts with specific parameters
|
||||
if (!empty($parameter)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue