diff options
author | Evan Prodromou <evan@status.net> | 2009-10-24 19:59:46 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-10-24 19:59:46 -0400 |
commit | 3c724ccd0df0d205a9567e435b6060300537f904 (patch) | |
tree | 4be361f0112444c5c8949a1e486efd1063030681 /plugins/Facebook/facebook/jsonwrapper/jsonwrapper_inner.php | |
parent | 967de946654e96793d11413a46067ac95b356a64 (diff) | |
parent | 6d6de3c1c7b359815aa0381b4cde3fcc8258cc80 (diff) |
Merge branch '0.9.x' into location
Diffstat (limited to 'plugins/Facebook/facebook/jsonwrapper/jsonwrapper_inner.php')
-rw-r--r-- | plugins/Facebook/facebook/jsonwrapper/jsonwrapper_inner.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/Facebook/facebook/jsonwrapper/jsonwrapper_inner.php b/plugins/Facebook/facebook/jsonwrapper/jsonwrapper_inner.php new file mode 100644 index 000000000..36a3f2863 --- /dev/null +++ b/plugins/Facebook/facebook/jsonwrapper/jsonwrapper_inner.php @@ -0,0 +1,23 @@ +<?php + +require_once 'JSON/JSON.php'; + +function json_encode($arg) +{ + global $services_json; + if (!isset($services_json)) { + $services_json = new Services_JSON(); + } + return $services_json->encode($arg); +} + +function json_decode($arg) +{ + global $services_json; + if (!isset($services_json)) { + $services_json = new Services_JSON(); + } + return $services_json->decode($arg); +} + +?> |