added break function to closing structure
This commit is contained in:
parent
ddee5b7199
commit
be264ab181
|
@ -273,7 +273,7 @@ protected static function compile_structure_openings($value)
|
|||
*/
|
||||
protected static function compile_structure_closings($value)
|
||||
{
|
||||
$pattern = '/@(endif|endforeach|endfor|endwhile)/';
|
||||
$pattern = '/@(endif|endforeach|endfor|endwhile|break)/';
|
||||
|
||||
return preg_replace($pattern, '<?php $1; ?>', $value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue