Skip to content

Commit

Permalink
Merge remote branch 'origin/3.1/develop' into 3.1/develop
Browse files Browse the repository at this point in the history
Conflicts:
	guide/kohana/bootstrap.md
	guide/kohana/errors.md
	guide/kohana/security/deploying.md
  • Loading branch information
zombor committed Feb 2, 2011
2 parents 8ac03f9 + 67e41ee commit 0de05f7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion classes/kohana/controller/rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function before()
*/
public function after()
{
if (in_array($this->request->method(), array(
if (in_array(Arr::get($_SERVER, 'HTTP_X_HTTP_METHOD_OVERRIDE', $this->request->method()), array(
Http_Request::PUT,
Http_Request::POST,
Http_Request::DELETE)))
Expand Down
4 changes: 2 additions & 2 deletions classes/kohana/response.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public function send_file($filename, $download = NULL, array $options = NULL)
if (is_object(Kohana::$log))
{
// Add this exception to the log
Kohana::$log->add(Kohana::ERROR, $error);
Kohana::$log->add(Log::ERROR, $error);

// Make sure the logs are written
Kohana::$log->write();
Expand Down Expand Up @@ -911,4 +911,4 @@ protected function _calculate_byte_range($size)

return array($start, $end);
}
} // End Kohana_Response
} // End Kohana_Response
2 changes: 1 addition & 1 deletion classes/kohana/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public function write()
catch (Exception $e)
{
// Log & ignore all errors when a write fails
Kohana::$log->add(Kohana::ERROR, Kohana_Exception::text($e))->write();
Kohana::$log->add(Log::ERROR, Kohana_Exception::text($e))->write();

return FALSE;
}
Expand Down
2 changes: 1 addition & 1 deletion guide/kohana/bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ Route::set('default', '(<controller>(/<action>(/<id>)))')
'controller' => 'welcome',
'action' => 'index',
));
~~~
~~~
2 changes: 1 addition & 1 deletion guide/kohana/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ There is no default method to handle these errors in Kohana. It's recommended th

And put something like this in your bootstrap to register the handler.

set_exception_handler(array('Foobar_Exception_Handler', 'handle'));
set_exception_handler(array('Foobar_Exception_Handler', 'handle'));
2 changes: 1 addition & 1 deletion guide/kohana/tutorials/error-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Our custom exception handler is self explanatory.
}
else
{
Kohana::$log->add(Kohana::ERROR, Kohana::exception_text($e));
Kohana::$log->add(Log::ERROR, Kohana::exception_text($e));

$attributes = array
(
Expand Down

0 comments on commit 0de05f7

Please sign in to comment.