mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:50:11 +00:00
Use central function to fetch the global directory
This commit is contained in:
parent
478ee7b6fc
commit
171354181d
13 changed files with 24 additions and 14 deletions
|
@ -28,6 +28,7 @@ use Friendica\Content\Widget;
|
|||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Search;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model;
|
||||
use Friendica\Model\Profile;
|
||||
|
@ -61,7 +62,7 @@ class Directory extends BaseModule
|
|||
$search = trim(rawurldecode($_REQUEST['search'] ?? ''));
|
||||
|
||||
$gDirPath = '';
|
||||
$dirURL = $config->get('system', 'directory');
|
||||
$dirURL = Search::getGlobalDirectory();
|
||||
if (strlen($dirURL)) {
|
||||
$gDirPath = Profile::zrl($dirURL, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue