fixing some bugs.
This commit is contained in:
parent
1acd66a247
commit
d3f9391981
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
'after' => function($response)
|
'after' => function($response)
|
||||||
{
|
{
|
||||||
Input::flash();
|
// Do stuff after every request to your application.
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ protected static function compile_echos($value)
|
||||||
*/
|
*/
|
||||||
protected static function compile_structure_openings($value)
|
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);
|
return preg_replace($pattern, '$1<?php $2$3: ?>', $value);
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ protected static function compile_section_end($value)
|
||||||
*/
|
*/
|
||||||
protected static function matcher($function)
|
protected static function matcher($function)
|
||||||
{
|
{
|
||||||
return '/(\s*)@'.$function.'(\s*\(.*?\))/';
|
return '/(\s*)@'.$function.'(\s*\(.*\))/';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -216,6 +216,8 @@
|
||||||
*/
|
*/
|
||||||
if (Config::$items['session']['driver'] !== '')
|
if (Config::$items['session']['driver'] !== '')
|
||||||
{
|
{
|
||||||
|
Input::flash();
|
||||||
|
|
||||||
IoC::core('session')->save($driver);
|
IoC::core('session')->save($driver);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,6 +138,8 @@ public function all($format = ':message')
|
||||||
*/
|
*/
|
||||||
protected function format($messages, $format)
|
protected function format($messages, $format)
|
||||||
{
|
{
|
||||||
|
$messages = (array) $messages;
|
||||||
|
|
||||||
foreach ($messages as $key => &$message)
|
foreach ($messages as $key => &$message)
|
||||||
{
|
{
|
||||||
$message = str_replace(':message', $message, $format);
|
$message = str_replace(':message', $message, $format);
|
||||||
|
|
Loading…
Reference in New Issue