Hi, I needed support for arrays from json_decode for my application (Drupal Disqus module which I changed to use this API instead) so added it locally and wanted to share. Nothing too exciting. Minimally tested but worked for both objects and arrays for me. Here you go:
Hi, I needed support for arrays from json_decode for my application (Drupal Disqus module which I changed to use this API instead) so added it locally and wanted to share. Nothing too exciting. Minimally tested but worked for both objects and arrays for me. Here you go:
--- disqus/disqus.php 2010-10-13 16:46:02.000000000 -0700 +++ disqusnew/disqus.php 2010-10-08 12:49:00.000000000 -0700 @@ -38,13 +38,13 @@ define('DISQUS_ACTION_KILL', 'kill');