mirror of
https://github.com/friendica/friendica
synced 2025-04-25 06:30: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
|
@ -25,6 +25,7 @@ use Exception;
|
|||
use Friendica\Core\ACL;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Search;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
|
@ -516,8 +517,8 @@ class Account extends BaseSettings
|
|||
}
|
||||
|
||||
$net_pub_desc = '';
|
||||
if (strlen(DI::config()->get('system', 'directory'))) {
|
||||
$net_pub_desc = ' ' . DI::l10n()->t('Your profile will also be published in the global friendica directories (e.g. <a href="%s">%s</a>).', DI::config()->get('system', 'directory'), DI::config()->get('system', 'directory'));
|
||||
if (Search::getGlobalDirectory()) {
|
||||
$net_pub_desc = ' ' . DI::l10n()->t('Your profile will also be published in the global friendica directories (e.g. <a href="%s">%s</a>).', Search::getGlobalDirectory(), Search::getGlobalDirectory());
|
||||
}
|
||||
|
||||
/* Installed langs */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue