ascvh@#%(^-^)V ?host,ip,port,protocol,title,domain,country,city,link,org ???à JFIF  x x ?? C         ?? C   ?à   " ??     ?? μ  } !1AQa "q2?‘?#B±áR?e$3br? %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??…???‰?’“”?–—???¢£¤¥|§¨?a23′μ?·?1o??????èéêòó???×?ùúáa?????èéê?òó???÷?ùú??     ?? μ   w !1AQ aq"2?B‘?±á #3Rebr?{ gilour

File "JsonExtension.php"

Full Path: /home/zcziejy/ryadselyen/loco-translate/src/compat/JsonExtension.php
File size: 812 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * Placeholder for missing PHP "json" extension.
 * Just avoids fatal errors. Does not actually replace functionality.
 *
 * If this extension is missing no JavaScript will work in the plugin at all.
 */
abstract class Loco_compat_JsonExtension {
    
    public static function json_encode( $value ){
        return '{"error":{"code":-1,"message":"json extension is not installed"}}';
    }

    public static function json_decode( $json ){
        return null;
    }
    
}


// @codeCoverageIgnoreStart

if( ! function_exists('json_encode') ){
    function json_encode( $value ){
        return Loco_compat_JsonExtension::json_encode( $value );
    }
}

if( ! function_exists('json_decode') ){
    function json_decode( $json ){
        return Loco_compat_JsonExtension::json_decode($json);
    }
}