Some more "baseurl" improvements
This commit is contained in:
parent
d6edb45cce
commit
327cdf21ce
2 changed files with 11 additions and 5 deletions
|
@ -436,9 +436,7 @@ class Probe
|
|||
$data['url'] = $uri;
|
||||
}
|
||||
|
||||
if (!empty($data['photo']) && !empty($data['baseurl'])) {
|
||||
$data['baseurl'] = Network::getUrlMatch(Strings::normaliseLink($data['baseurl']), Strings::normaliseLink($data['photo']));
|
||||
} elseif (empty($data['photo'])) {
|
||||
if (empty($data['photo'])) {
|
||||
$data['photo'] = DI::baseUrl() . '/images/person-300.jpg';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue