From d634db87d432c87a092f1c4cee69a56914cbaa97 Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Thu, 19 Mar 2009 22:07:39 +0000 Subject: replace array_push() function calls with native language constuct if make sense --- framework/Web/UI/TTemplateManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/TTemplateManager.php') 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) -- cgit v1.2.3