Remove get_server() in favor of Search::getGlobalDirectory()

This commit is contained in:
nupplaPhil 2020-01-04 23:59:20 +01:00
parent 5d20cd7e16
commit 48baa0be4b
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
10 changed files with 25 additions and 23 deletions

View file

@ -2,7 +2,6 @@
namespace Friendica\Module;
use Friendica\App\Arguments;
use Friendica\BaseModule;
use Friendica\Content\ContactSelector;
use Friendica\Content\Pager;
@ -15,7 +14,6 @@ use Friendica\Network\HTTPException;
use Friendica\Object\Search\ContactResult;
use Friendica\Object\Search\ResultList;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Strings;
/**
* Base class for search modules
@ -136,7 +134,7 @@ class BaseSearchModule extends BaseModule
$photo_menu['follow'] = [L10n::t("Connect/Follow"), $connLink];
}
$photo = str_replace("http:///photo/", get_server() . "/photo/", $result->getPhoto());
$photo = str_replace("http:///photo/", Search::getGlobalDirectory() . "/photo/", $result->getPhoto());
$entry = [
'alt_text' => $alt_text,