Added constant to hold if json_encode is available

This commit is contained in:
Josh Sherman 2010-03-24 18:45:36 -04:00
parent eb1fd8e364
commit ccbfbe5981

View file

@ -54,6 +54,9 @@ define('DISPLAY_RSS', 'RSS');
define('DISPLAY_SMARTY', 'Smarty');
define('DISPLAY_XML', 'XML');
// Creates a constant as to whether or not we have JSON available
define('JSON_AVAILABLE', function_exists('json_encode'));
/**
* Magic function to automatically load classes
*