cvs: smarty /libs Smarty_Compiler.class.php

[email protected] ("Monte Ohrt") Fri, 23 Feb 2007 16:28:34 -0000
Newsgroups php.smarty.cvs
Message-ID <cvsmohrt1172248114@cvsserver>
mohrt		Fri Feb 23 16:28:34 2007 UTC

  Modified files:              
    /smarty/libs	Smarty_Compiler.class.php 
  Log:
  add removed line back in
  
  
http://cvs.php.net/viewvc.cgi/smarty/libs/Smarty_Compiler.class.php?r1=1.390&r2=1.391&diff_format=u
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.390 smarty/libs/Smarty_Compiler.class.php:1.391
--- smarty/libs/Smarty_Compiler.class.php:1.390	Fri Feb 23 16:18:02 2007
+++ smarty/libs/Smarty_Compiler.class.php	Fri Feb 23 16:28:34 2007
@@ -26,7 +26,7 @@
  * @package Smarty
  */
 
-/* $Id: Smarty_Compiler.class.php,v 1.390 2007/02/23 16:18:02 mohrt Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.391 2007/02/23 16:28:34 mohrt Exp $ */
 
 /**
  * Template compiling class
@@ -362,6 +362,7 @@
                 $text_blocks[$i+1] = preg_replace('~^(\r\n|\r|\n)~', '', $text_blocks[$i+1]);
             }
             // replace legit PHP tags with placeholder
+            $text_blocks[$i] = str_replace('<?',$tmp_id,$text_blocks[$i]);
             $compiled_tags[$i] = str_replace('<?',$tmp_id,$compiled_tags[$i]);
             
             $compiled_content .= $text_blocks[$i].$compiled_tags[$i];