mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== trunk =====
|
||||
05.10.2011
|
||||
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
|
||||
|
||||
04.10.2011
|
||||
- bugfix assign() in plugins called in subtemplates did change value also in parent template
|
||||
- bugfix of problem introduced with r4342 on math plugin
|
||||
|
@@ -37,7 +37,7 @@ class Smarty_Internal_Compile_Private_Block_Plugin extends Smarty_Internal_Compi
|
||||
*/
|
||||
public function compile($args, $compiler, $parameter, $tag, $function)
|
||||
{
|
||||
if (!isset($tag[6]) || substr($tag, -5) != 'close') {
|
||||
if (!isset($tag[5]) || substr($tag, -5) != 'close') {
|
||||
// opening tag of block plugin
|
||||
// check and get attributes
|
||||
$_attr = $this->getAttributes($compiler, $args);
|
||||
|
@@ -36,7 +36,7 @@ class Smarty_Internal_Compile_Private_Registered_Block extends Smarty_Internal_C
|
||||
*/
|
||||
public function compile($args, $compiler, $parameter, $tag)
|
||||
{
|
||||
if (!isset($tag[6]) || substr($tag,-5) != 'close') {
|
||||
if (!isset($tag[5]) || substr($tag,-5) != 'close') {
|
||||
// opening tag of block plugin
|
||||
// check and get attributes
|
||||
$_attr = $this->getAttributes($compiler, $args);
|
||||
|
@@ -364,7 +364,7 @@ class Smarty_Security {
|
||||
return true;
|
||||
}
|
||||
// abort if we've reached root
|
||||
if (($pos = strrpos($directory, DS)) === false || !isset($directory[2])) {
|
||||
if (($pos = strrpos($directory, DS)) === false || !isset($directory[1])) {
|
||||
break;
|
||||
}
|
||||
// bubble up one level
|
||||
|
Reference in New Issue
Block a user