diff options
author | godzilla80@gmx.net <> | 2009-03-19 22:07:39 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2009-03-19 22:07:39 +0000 |
commit | d634db87d432c87a092f1c4cee69a56914cbaa97 (patch) | |
tree | 2a681041b70b22b61f3325725d663d62f8338e50 /framework/Web/UI/TTemplateManager.php | |
parent | de021710e1c0dae732e61ecb42a9ac60440f55ee (diff) |
replace array_push() function calls with native language constuct if make sense
Diffstat (limited to 'framework/Web/UI/TTemplateManager.php')
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index f44d414c..6d44d7d7 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -608,7 +608,7 @@ class TTemplate extends TApplicationComponent implements ITemplate $tpl[$c++]=array($container,$type,$attributes);
if($str[strlen($str)-2]!=='/') // open tag
{
- array_push($stack,$type);
+ $stack[] = $type;
$container=$c-1;
}
}
@@ -695,7 +695,7 @@ class TTemplate extends TApplicationComponent implements ITemplate else // regular property
{
$prop=strtolower($match[3][0]);
- array_push($stack,'@'.$prop);
+ $stack[] = '@'.$prop;
if(!$expectPropEnd)
{
if($matchStart>$textStart)
|