projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Continued on AJAX installer to start first step (more are easily to add)
[mailer.git]
/
inc
/
wrapper-functions.php
diff --git
a/inc/wrapper-functions.php
b/inc/wrapper-functions.php
index 4bd75bad61b69e9995fd1858ff334ee9baf3e16a..4324ae39c9ebfd4c9805e5c99424d868b8e44a5d 100644
(file)
--- a/
inc/wrapper-functions.php
+++ b/
inc/wrapper-functions.php
@@
-3348,5
+3348,11
@@
function wrapWords ($text) {
return $wrapped;
}
+// Encodes given data into a JSON object
+function encodeJson ($data) {
+ // Encode it
+ return json_encode($data, JSON_FORCE_OBJECT);
+}
+
// [EOF]
?>