Beispiel #1
0
 private function json_encode($data)
 {
     $json = json_encode($data);
     if (false !== $json) {
         return $json;
     }
     require_once $GLOBALS['ithemes_sync_path'] . '/class-ithemes-sync-json.php';
     return Ithemes_Sync_JSON::encode($data);
 }
Beispiel #2
0
 private function json_encode($data)
 {
     $json = json_encode($data);
     if (false !== $json) {
         return $json;
     }
     require_once dirname(__FILE__) . '/class-ithemes-sync-json.php';
     return Ithemes_Sync_JSON::encode($data);
 }