]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Expire.php
Remove global $db variable
[friendica.git] / src / Worker / Expire.php
index 6cc333dd053f9f9f9b6636559f79218b41869d24..685fad49e8f64fc171946f3600203b26c5489d13 100644 (file)
@@ -15,9 +15,11 @@ use dba;
 
 require_once 'include/dba.php';
 
-class Expire {
-       public static function execute($param = '', $hook_name = '') {
-               global $a;
+class Expire
+{
+       public static function execute($param = '', $hook_name = '')
+       {
+               $a = \Friendica\BaseObject::getApp();
 
                require_once 'include/items.php';