Skip to content

Commit

Permalink
unconditionally replace <? and ?>
Browse files Browse the repository at this point in the history
This prevents bake from being sensitive to short-open tags ini setting
  • Loading branch information
AD7six committed Nov 23, 2014
1 parent 4a3eaa7 commit e37eb82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/View/BakeView.php
Expand Up @@ -44,9 +44,8 @@ class BakeView extends View {
*/
protected $_defaultConfig = [
'phpTagReplacements' => [
'<?=' => "<CakePHPBakePhpOpenTag=",
'<?php' => "<CakePHPBakePhpOpenTag",
' ?>' => " CakePHPBakePhpCloseTag>"
'<?' => "<CakePHPBakeOpenTag",
'?>' => "CakePHPBakeCloseTag>"
],
'replacements' => [
'/\n[ \t]+<%- /' => "\n<% ",
Expand Down

0 comments on commit e37eb82

Please sign in to comment.