diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-29 14:53:40 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-29 14:53:40 -0800 |
commit | a95609849e42656b35f0110a08cc4436ad56b916 (patch) | |
tree | 2001d04c37f526655b804d9dc880674cf20d9c4d | |
parent | d4998e37d859e4702407b9a85af6a8ac2fabe686 (diff) |
Use var_export instead of print_r for better clarity.
-rw-r--r-- | modules/rest/helpers/rest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 0d2ec9d4..1f95a7e7 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -25,8 +25,8 @@ class rest_Core { if (Input::instance()->get("output") == "html") { header("Content-type: text/html"); $html = preg_replace( - "#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t<]*)#ise", "'\\1<a href=\"\\2\" >\\2</a>'", - print_r($data, 1)); + "#([\w]+?://[\w]+[^ \'\"\n\r\t<]*)#ise", "'<a href=\"\\1\" >\\1</a>'", + var_export($data, 1)); print "<pre>$html</pre>"; } else { header("Content-type: application/json"); |