Support for cleared boot.php
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Friendica\Core\System;
|
||||
|
||||
/**
|
||||
* Super-skeletal class to interact with Diaspora.
|
||||
*
|
||||
@@ -29,7 +32,7 @@ class Diaspora_Connection {
|
||||
$this->setPassword($password);
|
||||
}
|
||||
|
||||
$this->cookiejar = tempnam(get_temppath(), 'cookies');
|
||||
$this->cookiejar = tempnam(System::getTempPath(), 'cookies');
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Friendica\Core\System;
|
||||
|
||||
/**
|
||||
* Ein fies zusammengehackter PHP-Diaspory-Client, der direkt von diesem abgeschaut ist:
|
||||
* https://github.com/Javafant/diaspy/blob/master/client.py
|
||||
@@ -11,7 +14,7 @@ class Diasphp {
|
||||
$this->token_regex = '/content="(.*?)" name="csrf-token/';
|
||||
|
||||
$this->pod = $pod;
|
||||
$this->cookiejar = tempnam(get_temppath(), 'cookies');
|
||||
$this->cookiejar = tempnam(System::getTempPath(), 'cookies');
|
||||
}
|
||||
|
||||
function __destruct() {
|
||||
|
||||
Reference in New Issue
Block a user