aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-13 22:11:06 -0700
committerredmatrix <git@macgirvin.com>2016-07-13 22:11:06 -0700
commitb3a785711cde52a3c03c0a0eb90ce4e9ce8d9059 (patch)
tree3e903f0d2a9af6dd036bf1013c6abe0a1ebc085a /include/text.php
parent503b42029212a61ce4aefcf63eb2a865ee334619 (diff)
downloadvolse-hubzilla-b3a785711cde52a3c03c0a0eb90ce4e9ce8d9059.tar.gz
volse-hubzilla-b3a785711cde52a3c03c0a0eb90ce4e9ce8d9059.tar.bz2
volse-hubzilla-b3a785711cde52a3c03c0a0eb90ce4e9ce8d9059.zip
deprecate/remove json_decode_plus
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/include/text.php b/include/text.php
index 986e3b56c..ba7d9cc5b 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1280,9 +1280,9 @@ function unobscure(&$item) {
if(array_key_exists('item_obscured',$item) && intval($item['item_obscured'])) {
$key = get_config('system','prvkey');
if($item['title'])
- $item['title'] = crypto_unencapsulate(json_decode_plus($item['title']),$key);
+ $item['title'] = crypto_unencapsulate(json_decode($item['title'],true),$key);
if($item['body'])
- $item['body'] = crypto_unencapsulate(json_decode_plus($item['body']),$key);
+ $item['body'] = crypto_unencapsulate(json_decode($item['body'],true),$key);
if(get_config('system','item_cache')) {
q("update item set title = '%s', body = '%s', item_obscured = 0 where id = %d",
dbesc($item['title']),
@@ -1305,7 +1305,7 @@ function unobscure_mail(&$item) {
function theme_attachments(&$item) {
- $arr = json_decode_plus($item['attach']);
+ $arr = json_decode($item['attach'],true);
if(is_array($arr) && count($arr)) {
$attaches = array();
foreach($arr as $r) {
@@ -2208,20 +2208,12 @@ function jindent($json) {
return $result;
}
-
-function json_decode_plus($s) {
- $x = json_decode($s,true);
- if(! $x)
- $x = json_decode(str_replace(array('\\"','\\\\'),array('"','\\'),$s),true);
-
- return $x;
-}
-
/**
* @brief Creates navigation menu for webpage, layout, blocks, menu sites.
*
* @return string
*/
+
function design_tools() {
$channel = App::get_channel();