The boot.php had been cleared of most functions
This commit is contained in:
@@ -23,6 +23,7 @@ namespace Friendica\Worker;
|
||||
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
@@ -152,7 +153,7 @@ class OnePoll
|
||||
return false;
|
||||
}
|
||||
|
||||
$cookiejar = tempnam(get_temppath(), 'cookiejar-onepoll-');
|
||||
$cookiejar = tempnam(System::getTempPath(), 'cookiejar-onepoll-');
|
||||
$curlResult = DI::httpClient()->get($contact['poll'], [HttpClientOptions::COOKIEJAR => $cookiejar]);
|
||||
unlink($cookiejar);
|
||||
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user