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;