diff options
author | redmatrix <git@macgirvin.com> | 2016-07-13 22:11:06 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-13 22:11:06 -0700 |
commit | b3a785711cde52a3c03c0a0eb90ce4e9ce8d9059 (patch) | |
tree | 3e903f0d2a9af6dd036bf1013c6abe0a1ebc085a /Zotlabs/Module | |
parent | 503b42029212a61ce4aefcf63eb2a865ee334619 (diff) | |
download | volse-hubzilla-b3a785711cde52a3c03c0a0eb90ce4e9ce8d9059.tar.gz volse-hubzilla-b3a785711cde52a3c03c0a0eb90ce4e9ce8d9059.tar.bz2 volse-hubzilla-b3a785711cde52a3c03c0a0eb90ce4e9ce8d9059.zip |
deprecate/remove json_decode_plus
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Editpost.php | 4 | ||||
-rw-r--r-- | Zotlabs/Module/Editwebpage.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Module/Editpost.php b/Zotlabs/Module/Editpost.php index da859de3e..838fe9e4f 100644 --- a/Zotlabs/Module/Editpost.php +++ b/Zotlabs/Module/Editpost.php @@ -47,9 +47,9 @@ class Editpost extends \Zotlabs\Web\Controller { if(intval($itm[0]['item_obscured'])) { $key = get_config('system','prvkey'); if($itm[0]['title']) - $itm[0]['title'] = crypto_unencapsulate(json_decode_plus($itm[0]['title']),$key); + $itm[0]['title'] = crypto_unencapsulate(json_decode($itm[0]['title'],true),$key); if($itm[0]['body']) - $itm[0]['body'] = crypto_unencapsulate(json_decode_plus($itm[0]['body']),$key); + $itm[0]['body'] = crypto_unencapsulate(json_decode($itm[0]['body'],true),$key); } $category = ''; diff --git a/Zotlabs/Module/Editwebpage.php b/Zotlabs/Module/Editwebpage.php index be4803a07..a55f81101 100644 --- a/Zotlabs/Module/Editwebpage.php +++ b/Zotlabs/Module/Editwebpage.php @@ -108,9 +108,9 @@ class Editwebpage extends \Zotlabs\Web\Controller { if(intval($itm[0]['item_obscured'])) { $key = get_config('system','prvkey'); if($itm[0]['title']) - $itm[0]['title'] = crypto_unencapsulate(json_decode_plus($itm[0]['title']),$key); + $itm[0]['title'] = crypto_unencapsulate(json_decode($itm[0]['title'],true),$key); if($itm[0]['body']) - $itm[0]['body'] = crypto_unencapsulate(json_decode_plus($itm[0]['body']),$key); + $itm[0]['body'] = crypto_unencapsulate(json_decode($itm[0]['body'],true),$key); } $item_id = q("select * from iconfig where cat = 'system' and k = 'WEBPAGE' and iid = %d limit 1", |