From 49f714572951ece32b3c36bb4d69445e97d7f75d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 9 Jun 2011 12:31:35 -0500 Subject: [PATCH] added log to aliases. fixed flash data bug. --- application/config/application.php | 1 + public/index.php | 5 +++++ system/session.php | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/application/config/application.php b/application/config/application.php index c97aef58..efe0b20a 100644 --- a/application/config/application.php +++ b/application/config/application.php @@ -85,6 +85,7 @@ 'Inflector' => 'System\\Inflector', 'Input' => 'System\\Input', 'Lang' => 'System\\Lang', + 'Log' => 'System\\Log', 'URL' => 'System\\URL', 'Redirect' => 'System\\Redirect', 'Request' => 'System\\Request', diff --git a/public/index.php b/public/index.php index b3a7b197..9f89c837 100644 --- a/public/index.php +++ b/public/index.php @@ -119,6 +119,11 @@ // ---------------------------------------------------------- System\Filter::call('after', array($response)); +// ---------------------------------------------------------- +// Stringify the response. +// ---------------------------------------------------------- +$response->content = (string) $response->content; + // -------------------------------------------------------------- // Close the session. // -------------------------------------------------------------- diff --git a/system/session.php b/system/session.php index 3ff44661..864f3b6b 100644 --- a/system/session.php +++ b/system/session.php @@ -204,9 +204,9 @@ public static function regenerate() public static function close() { // ----------------------------------------------------- - // Flash the old input into the session. + // Do we need to re-flash the old Input data? // ----------------------------------------------------- - static::flash('laravel_old_input', Input::get()); + static::flash('laravel_old_input', Input::get()); // ----------------------------------------------------- // Age the session flash data.