Skip to content

Commit

Permalink
- bugfix special variable {$smarty.capture.name} was not case sensiti…
Browse files Browse the repository at this point in the history
…ve on name #210
  • Loading branch information
uwetews committed Apr 14, 2016
1 parent 6d4a4de commit 9839de9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
 ===== 3.1.30-dev ===== (xx.xx.xx)
14.04.2016
- bugfix special variable {$smarty.capture.name} was not case sensitive on name https://github.com/smarty-php/smarty/issues/210

13.04.2016
- bugfix template inheritance status must be saved when calling sub-templates https://github.com/smarty-php/smarty/issues/215

Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.30-dev/60';
const SMARTY_VERSION = '3.1.30-dev/61';

/**
* define variable scopes
Expand Down
2 changes: 0 additions & 2 deletions libs/sysplugins/smarty_internal_compile_capture.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class Smarty_Internal_Compile_Capture extends Smarty_Internal_CompileBase
*/
public static function compileSpecialVariable($args, Smarty_Internal_TemplateCompilerBase $compiler, $parameter = null)
{
// make all lower case
$parameter = array_map('strtolower', $parameter);
$tag = trim($parameter[ 0 ], '"\'');
$name = isset($parameter[ 1 ]) ? $compiler->getId($parameter[ 1 ]) : false;
if (!$name) {
Expand Down

0 comments on commit 9839de9

Please sign in to comment.