1978
1978
/* Extract the reference name. */
1979
1979
$_ref = substr($indexes[0], 1);
1980
1980
foreach($indexes as $_index_no=>$_index) {
1981
if (substr($_index, 0, 1) != '.' && $_index_no<2 || !preg_match('~^(\.|\[|->)~', $_index)) {
1982
1982
$this->_syntax_error('$smarty' . implode('', array_slice($indexes, 0, 2)) . ' is an invalid reference', E_USER_ERROR, __FILE__, __LINE__);