Commit d3f93919 authored by Taylor Otwell's avatar Taylor Otwell

fixing some bugs.

parent 1acd66a2
......@@ -50,7 +50,7 @@ return array(
'after' => function($response)
{
Input::flash();
// Do stuff after every request to your application.
},
......
......@@ -73,7 +73,7 @@ class Blade {
*/
protected static function compile_structure_openings($value)
{
$pattern = '/(\s*)@(if|elseif|foreach|for|while)(\s*\(.*?\))/';
$pattern = '/(\s*)@(if|elseif|foreach|for|while)(\s*\(.*\))/';
return preg_replace($pattern, '$1<?php $2$3: ?>', $value);
}
......@@ -153,7 +153,7 @@ class Blade {
*/
protected static function matcher($function)
{
return '/(\s*)@'.$function.'(\s*\(.*?\))/';
return '/(\s*)@'.$function.'(\s*\(.*\))/';
}
}
\ No newline at end of file
......@@ -216,6 +216,8 @@ $response->content = $response->render();
*/
if (Config::$items['session']['driver'] !== '')
{
Input::flash();
IoC::core('session')->save($driver);
}
......
......@@ -138,6 +138,8 @@ class Messages {
*/
protected function format($messages, $format)
{
$messages = (array) $messages;
foreach ($messages as $key => &$message)
{
$message = str_replace(':message', $message, $format);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment