diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-30 17:08:01 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-30 17:08:01 -0800 |
commit | 11792a12bb2002a434217efabe232022dd253b67 (patch) | |
tree | 4df434a962072dd092a4a2dfa03175ec7e916f0d /modules/rest | |
parent | e6111e616b5d6282b8aeb1d1b09fc6d064caafe8 (diff) |
1) Remove the rest::not_found method and replace it with "throw new Kohana_404_Exception
2) Don't use the input path to lookup the item via relative_path_cache. Instead use url::get_item_from_uri method.
Diffstat (limited to 'modules/rest')
-rw-r--r-- | modules/rest/helpers/rest.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/rest/helpers/rest.php b/modules/rest/helpers/rest.php index 276ff0c2..4b3166c0 100644 --- a/modules/rest/helpers/rest.php +++ b/modules/rest/helpers/rest.php @@ -46,14 +46,7 @@ class rest_Core { } /** - * Resource Not Found - */ - static function not_found($log_message=null) { - return self::_format_failure_response(t("Resource not found"), $log_message); - } - - /** - * Resource Not Found + * Request failed */ static function fail($log_message=null) { return self::_format_failure_response($log_message, $log_message); |