diff options
author | Zach Copley <zach@status.net> | 2009-10-21 01:07:03 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-10-21 01:07:03 +0000 |
commit | d07c9d87504c3909466e2c99a1265af15aba3c3d (patch) | |
tree | fefc9a03987083fa713ca5d8d90b17d427deb67f /plugins/Facebook/facebook/jsonwrapper/jsonwrapper_inner.php | |
parent | 78e5a5980a21c04cfdacb993ca3c37bf65d21783 (diff) |
Gather all the Facebook stuff together in one place
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); +} + +?> |