|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
liviu.gelea Smarty Rookie
Joined: 25 Nov 2015 Posts: 16
|
Posted: Thu Dec 17, 2015 5:34 pm Post subject: Elegant bug |
|
|
This fails:
Code: |
a{if 0}1{else}0{/if}a
|
expected: "a0a"
output: "aa"
This works:
Code: |
a{if 0}1{else} 0{/if}a
|
expected: "a 0a"
output: "a 0a" (awesome)
There is no complicated logic inside the script that displays this. No filters, no functions, no cache, nothing. Just...
Code: |
require_once( "../../vendor/Smarty/Smarty.class.php");
$smarty = new Smarty;
$smarty->display( '......................\htdocs\templates\test.inc.php' );
|
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Dec 17, 2015 6:35 pm Post subject: |
|
|
Smarty and PHP versions - ? |
|
Back to top |
|
liviu.gelea Smarty Rookie
Joined: 25 Nov 2015 Posts: 16
|
Posted: Thu Dec 17, 2015 6:36 pm Post subject: |
|
|
const SMARTY_VERSION = '3.1.29-dev/3'; |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Dec 17, 2015 8:50 pm Post subject: |
|
|
The fix is now on github in the master branch.
It will be soon included in the maintenance release 3.1.29 |
|
Back to top |
|
liviu.gelea Smarty Rookie
Joined: 25 Nov 2015 Posts: 16
|
Posted: Fri Dec 18, 2015 1:00 pm Post subject: Thanks |
|
|
Thanks a lot |
|
Back to top |
|
ildar Smarty Rookie
Joined: 14 May 2015 Posts: 14
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|