literal fixed .... 8-(
| From: | Michał Sznajder | Date: | Fri, 05 Oct 2001 15:57:52 +0000 |
| Subject: | literal fixed .... 8-( | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1610@lists.php.net to get a copy of this message | ||
Witam
As my bug report on literal was not taken seriously (I mean there was not a
single mail on the list 8-( ) I've looked into Smarty_Compiler.class.php and
fixed it.
Somewhere in this file (around line 248) you wil see
-----CODE-------
case 'literal':
list (,$literal_block) = each($this->_literal_blocks);
$this->_current_line_no += substr_count($literal_block,
"\n");
return "<?php echo
'".str_replace("'","\'",$literal_block)."';
?>\n";
-----CODE----
You have to remove last line and insert this one:
return "<?php echo
''".str_replace("'","\'",$literal_block)."'';
?>\n";
(You see double ' ?)
Fix was done on 1.4.5 ....
But my second question is still not answered 8-(. Why 1.4.5 is not
compatible with 1.4.4 ? clear_compile_dir has vanished. I now that it is
somehow depreciated (due to this cache stuff I think) but there should be at
least some small release note about it ....
--
Pozdrawiam
Michal "Misza" Sznajder
[ http://www.fxmedia.com.pl/ ]