diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-22 00:53:44 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-22 00:53:44 -0800 |
commit | a0c6d055d1b7259667bebb1b5bf9e2a99c0f8260 (patch) | |
tree | 989520a86f6d55f52fd927df0c2408ed455b28fd /modules/rest | |
parent | 27acb156bcd123e8a6dd751d6c80737e65a40f3a (diff) |
output_type --> output
Diffstat (limited to 'modules/rest')
-rw-r--r-- | modules/rest/helpers/rest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index fe704a9e..0d2ec9d4 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -22,7 +22,7 @@ class rest_Core { Session::abort_save(); if ($data) { - if (Input::instance()->get("output_type") == "html") { + 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>'", @@ -112,8 +112,8 @@ class rest_Core { } $url = call_user_func_array(array($class, "url"), $args); - if (Input::instance()->get("output_type") == "html") { - $url .= "?output_type=html"; + if (Input::instance()->get("output") == "html") { + $url .= "?output=html"; } return $url; } |