mirror of
https://github.com/friendica/friendica
synced 2025-05-04 10:24:11 +02:00
Remove get_server() in favor of Search::getGlobalDirectory()
This commit is contained in:
parent
5d20cd7e16
commit
48baa0be4b
10 changed files with 25 additions and 23 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue