mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:10:13 +00:00
Merge branch 'phpstan-level-1-in-addons' into phpstan-level-2
This commit is contained in:
commit
535baaebcf
9 changed files with 2164 additions and 3 deletions
|
@ -15,6 +15,7 @@ use Friendica\BaseModule;
|
|||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Util\BasePath;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\Profiler;
|
||||
use Friendica\Util\XML;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
@ -72,11 +73,12 @@ class OpenSearch extends BaseModule
|
|||
}
|
||||
|
||||
if (!empty($shortcut_icon)) {
|
||||
$imagedata = getimagesize($this->baseUrl . $shortcut_icon);
|
||||
$shortcut_icon = Network::addBasePath($shortcut_icon, $this->baseUrl);
|
||||
$imagedata = getimagesize($shortcut_icon);
|
||||
}
|
||||
|
||||
if (!empty($imagedata)) {
|
||||
XML::addElement($xml, $parent, 'Image', $this->baseUrl . $shortcut_icon, [
|
||||
XML::addElement($xml, $parent, 'Image', $shortcut_icon, [
|
||||
'width' => $imagedata[0],
|
||||
'height' => $imagedata[1],
|
||||
'type' => $imagedata['mime'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue