nrueckmann / smarty-php

Automatically exported from code.google.com/p/smarty-php
0 stars 0 forks source link

Use user-defined delimiters in error messages #157

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Change the tag delimiters to '[[' and ']]'
1. fetch a template containing an unclosed 'if' tag

What is the expected output? What do you see instead?
The error message is "unclosed {if} tag"; it should be "unclosed [[if]] tag", 
i.e. the error messages should reflect the delimiters in use, not the default.

I can see that the delimiters are hard-coded in the error message (in 
smarty_internal_smartytemplatecompiler.php and smarty_intrnal_compilebase.php), 
it's just not immediately obvious to me where I should retrieve the current 
delimiters from in those contexts.

Original issue reported on code.google.com by marcus.b...@gmail.com on 18 Sep 2013 at 3:58

GoogleCodeExporter commented 8 years ago
This has now been changed in the SVN trunk and will be included in 3.1.15

Original comment by Uwe.Tews@googlemail.com on 1 Oct 2013 at 6:49