Added constant to hold if json_encode is available
This commit is contained in:
parent
eb1fd8e364
commit
ccbfbe5981
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue