mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
Adapt BaseURL calls to new UriInterface
This commit is contained in:
parent
9e6d95284b
commit
f0c29edcde
101 changed files with 218 additions and 241 deletions
|
@ -401,7 +401,7 @@ class System
|
|||
if (is_bool($prefix) && !$prefix) {
|
||||
$prefix = '';
|
||||
} elseif (empty($prefix)) {
|
||||
$prefix = hash('crc32', DI::baseUrl()->getHostname());
|
||||
$prefix = hash('crc32', DI::baseUrl()->getHost());
|
||||
}
|
||||
|
||||
while (strlen($prefix) < ($size - 13)) {
|
||||
|
@ -604,7 +604,7 @@ class System
|
|||
$temppath = BasePath::getRealPath($temppath);
|
||||
|
||||
// To avoid any interferences with other systems we create our own directory
|
||||
$new_temppath = $temppath . "/" . DI::baseUrl()->getHostname();
|
||||
$new_temppath = $temppath . "/" . DI::baseUrl()->getHost();
|
||||
if (!is_dir($new_temppath)) {
|
||||
/// @TODO There is a mkdir()+chmod() upwards, maybe generalize this (+ configurable) into a function/method?
|
||||
mkdir($new_temppath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue