* easily as email does today.
*/
-use Friendica\Core\Config;
use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Database\DBA;
$tz = 'UTC';
}
- $profile = DBA::selectFirst('profile', ['dob'], ['is-default' => true, 'uid' => $uid]);
+ $profile = DBA::selectFirst('profile', ['dob'], ['uid' => $uid]);
if (DBA::isResult($profile)) {
$tmp_dob = substr($profile['dob'], 5);
if (intval($tmp_dob)) {
if (System::isDirectoryUsable($new_temppath)) {
// The new path is usable, we are happy
- Config::set("system", "temppath", $new_temppath);
+ DI::config()->set("system", "temppath", $new_temppath);
return $new_temppath;
} else {
// We can't create a subdirectory, strange.
}
if (System::isDirectoryUsable($itemcache)) {
- Config::set("system", "itemcache", $itemcache);
+ DI::config()->set("system", "itemcache", $itemcache);
return $itemcache;
}
}
if (System::isDirectoryUsable($spoolpath)) {
// The new path is usable, we are happy
- Config::set("system", "spoolpath", $spoolpath);
+ DI::config()->set("system", "spoolpath", $spoolpath);
return $spoolpath;
} else {
// We can't create a subdirectory, strange.