From b2573b2ca1dedb26cb2c652f538d346a63408649 Mon Sep 17 00:00:00 2001 From: mohrt Date: Mon, 17 Feb 2003 17:39:12 +0000 Subject: [PATCH] back out patches for object and objref calls on $smarty var --- Smarty_Compiler.class.php | 10 ---------- libs/Smarty_Compiler.class.php | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index 93ddb73f..cc764c91 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -1780,16 +1780,6 @@ class Smarty_Compiler extends Smarty { $compiled_ref = '(defined("' . substr($indexes[0],1) . '") ? ' . substr($indexes[0],1) . ' : null)'; break; - case 'object': - array_shift($indexes); - $compiled_ref = '$this->_reg_objects["' . substr($indexes[0],1) . '"][0]'; - break; - - case 'objref': - array_shift($indexes); - $compiled_ref = '&$this->_reg_objects["' . substr($indexes[0],1) . '"][0]'; - break; - default: $this->_syntax_error('$smarty.' . $ref . ' is an unknown reference', E_USER_ERROR, __FILE__, __LINE__); break; diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 93ddb73f..cc764c91 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1780,16 +1780,6 @@ class Smarty_Compiler extends Smarty { $compiled_ref = '(defined("' . substr($indexes[0],1) . '") ? ' . substr($indexes[0],1) . ' : null)'; break; - case 'object': - array_shift($indexes); - $compiled_ref = '$this->_reg_objects["' . substr($indexes[0],1) . '"][0]'; - break; - - case 'objref': - array_shift($indexes); - $compiled_ref = '&$this->_reg_objects["' . substr($indexes[0],1) . '"][0]'; - break; - default: $this->_syntax_error('$smarty.' . $ref . ' is an unknown reference', E_USER_ERROR, __FILE__, __LINE__); break;