X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FPhoto.php;h=c8e0656d2df62ac9014697cdabd14a636ad73526;hb=dad3404ac5439f2e166e1b50c43bc6c5be43c97a;hp=954b3f3eecca60dab3911b439eab9a08fea4d734;hpb=5d7985dcff4bc0a4ca1c3b76076e43de771de4bb;p=friendica.git diff --git a/src/Module/Photo.php b/src/Module/Photo.php index 954b3f3eec..c8e0656d2d 100644 --- a/src/Module/Photo.php +++ b/src/Module/Photo.php @@ -22,6 +22,7 @@ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\Contact\Header; use Friendica\Core\Logger; use Friendica\Core\Protocol; use Friendica\Database\DBA; @@ -482,6 +483,6 @@ class Photo extends BaseApi if (!empty($photo)) { return $photo; } - return MPhoto::createPhotoForImageData(file_get_contents(DI::basePath() . '/images/friendica-banner.jpg')); + return MPhoto::createPhotoForImageData(file_get_contents(DI::basePath() . (new Header(DI::config()))->getMastodonBannerPath())); } }