diff options
author | Mario <mario@mariovavti.com> | 2024-03-24 09:58:21 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-24 09:58:21 +0000 |
commit | a0cfe22501dc9daa7dd8cff86803cf494a1f5ec3 (patch) | |
tree | e156db21df2251b8c67e61453c8f4af9f9460d2f /Zotlabs/Update/_1236.php | |
parent | ecdd9a4d6edd769a3e2c3b0604e4637d94fa1a51 (diff) | |
parent | 0dc959d9fe40bddce5e99b8162bb0e770fc28ed9 (diff) | |
download | volse-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/Update/_1236.php')
-rw-r--r-- | Zotlabs/Update/_1236.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Zotlabs/Update/_1236.php b/Zotlabs/Update/_1236.php index e57338e16..b5bfdaad8 100644 --- a/Zotlabs/Update/_1236.php +++ b/Zotlabs/Update/_1236.php @@ -2,15 +2,16 @@ namespace Zotlabs\Update; +use Zotlabs\Lib\Config; use Zotlabs\Lib\Libzot; class _1236 { function run() { - - $r = q("SELECT channel.channel_address, channel.channel_hash, xchan.xchan_guid, channel.channel_pubkey, channel.channel_portable_id FROM channel - LEFT JOIN xchan ON channel_hash = xchan_hash - WHERE xchan.xchan_network = 'zot' + + $r = q("SELECT channel.channel_address, channel.channel_hash, xchan.xchan_guid, channel.channel_pubkey, channel.channel_portable_id FROM channel + LEFT JOIN xchan ON channel_hash = xchan_hash + WHERE xchan.xchan_network = 'zot' AND channel.channel_removed = 0" ); @@ -102,7 +103,7 @@ class _1236 { $rec['hubloc_url_sig'] = 'sha256.' . $rec['hubloc_url_sig']; $rec['hubloc_callback'] = z_root() . '/zot'; $rec['hubloc_id_url'] = channel_url($rr); - $rec['hubloc_site_id'] = Libzot::make_xchan_hash(z_root(),get_config('system','pubkey')); + $rec['hubloc_site_id'] = Libzot::make_xchan_hash(z_root(),Config::Get('system','pubkey')); $hubloc = hubloc_store_lowlevel($rec); } |