<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Worker;
use Friendica\Core\Logger;
+use Friendica\Core\System;
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)) {