mirror of
https://github.com/friendica/friendica
synced 2025-05-05 19:44:09 +02: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
|
@ -23,6 +23,7 @@ namespace Friendica\Worker;
|
|||
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Search;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
|
@ -35,7 +36,7 @@ class Directory
|
|||
{
|
||||
public static function execute($url = '')
|
||||
{
|
||||
$dir = DI::config()->get('system', 'directory');
|
||||
$dir = Search::getGlobalDirectory();
|
||||
|
||||
if (!strlen($dir)) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue