aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Directory.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-24 09:58:21 +0000
committerMario <mario@mariovavti.com>2024-03-24 09:58:21 +0000
commita0cfe22501dc9daa7dd8cff86803cf494a1f5ec3 (patch)
treee156db21df2251b8c67e61453c8f4af9f9460d2f /Zotlabs/Module/Directory.php
parentecdd9a4d6edd769a3e2c3b0604e4637d94fa1a51 (diff)
parent0dc959d9fe40bddce5e99b8162bb0e770fc28ed9 (diff)
downloadvolse-hubzilla-a0cfe22501dc9daa7dd8cff86803cf494a1f5ec3.tar.gz
volse-hubzilla-a0cfe22501dc9daa7dd8cff86803cf494a1f5ec3.tar.bz2
volse-hubzilla-a0cfe22501dc9daa7dd8cff86803cf494a1f5ec3.zip
Merge branch 'deprecate-include-config-in-core' into 'dev'
Deprecate *_config() functions in core. See merge request hubzilla/core!2114
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r--Zotlabs/Module/Directory.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index 13353c108..88e2dd59b 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -3,9 +3,9 @@
namespace Zotlabs\Module;
use App;
-use Zotlabs\Web\Controller;
+use Zotlabs\Lib\Config;
use Zotlabs\Lib\Libzotdir;
-
+use Zotlabs\Web\Controller;
require_once('include/socgraph.php');
require_once('include/bbcode.php');
@@ -73,7 +73,7 @@ class Directory extends Controller {
return;
}
- if(get_config('system','block_public_directory',false) && (! get_observer_hash())) {
+ if(Config::Get('system','block_public_directory',false) && (! get_observer_hash())) {
notice( t('Public access denied.') . EOL);
return;
}
@@ -145,7 +145,7 @@ class Directory extends Controller {
$tpl = get_markup_template('directory_header.tpl');
- $dirmode = intval(get_config('system','directory_mode'));
+ $dirmode = intval(Config::Get('system','directory_mode'));
$directory_admin = false;
@@ -165,7 +165,7 @@ class Directory extends Controller {
$url = $directory['url'] . '/dirsearch';
}
- $token = get_config('system','realm_token');
+ $token = Config::Get('system','realm_token');
logger('mod_directory: URL = ' . $url, LOGGER_DEBUG);
@@ -184,11 +184,11 @@ class Directory extends Controller {
if($url) {
- $numtags = get_config('system','directorytags');
+ $numtags = Config::Get('system','directorytags');
$kw = ((intval($numtags) > 0) ? intval($numtags) : 50);
- if(get_config('system','disable_directory_keywords'))
+ if(Config::Get('system','disable_directory_keywords'))
$kw = 0;
if (intval($safe_mode) === 0 && $directory_admin)
@@ -213,7 +213,7 @@ class Directory extends Controller {
if(! is_null($pubforums))
$query .= '&pubforums=' . intval($pubforums);
- $directory_sort_order = get_config('system','directory_sort_order');
+ $directory_sort_order = Config::Get('system','directory_sort_order');
if(! $directory_sort_order)
$directory_sort_order = 'date';