]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/SpoolPost.php
Merge remote-tracking branch 'upstream/develop' into forum3
[friendica.git] / src / Worker / SpoolPost.php
index e32cee1f2f513dbf2996172b3c7e73a4537bc716..884c5fd49a87cf7a71547f8bfe934ede4410df38 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,6 +22,7 @@
 namespace Friendica\Worker;
 
 use Friendica\Core\Logger;
+use Friendica\Core\System;
 use Friendica\Model\Item;
 
 /**
@@ -29,7 +30,7 @@ use Friendica\Model\Item;
  */
 class SpoolPost {
        public static function execute() {
-               $path = get_spoolpath();
+               $path = System::getSpoolPath();
 
                if (($path != '') && is_writable($path)){
                        if ($dh = opendir($path)) {