use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
-use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
+use Friendica\Core\Search;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
function get_vier_config($key, $default = false, $admin = false)
{
if (local_user() && !$admin) {
- $result = PConfig::get(local_user(), "vier", $key);
+ $result = DI::pConfig()->get(local_user(), "vier", $key);
if (!is_null($result)) {
return $result;
}
$nv['random'] = L10n::t('Random Profile');
$nv['inv'] = L10n::t('Invite Friends');
$nv['directory'] = L10n::t('Global Directory');
- $nv['global_dir'] = get_server();
+ $nv['global_dir'] = Search::getGlobalDirectory();
$nv['local_directory'] = L10n::t('Local Directory');
$aside['$nv'] = $nv;