Index: branches/unlabeled/unlabeled-1.102.2/kernel/parser.php =================================================================== diff -u -r6838 -r6881 --- branches/unlabeled/unlabeled-1.102.2/kernel/parser.php (.../parser.php) (revision 6838) +++ branches/unlabeled/unlabeled-1.102.2/kernel/parser.php (.../parser.php) (revision 6881) @@ -613,11 +613,11 @@ $sql = 'SELECT ValueList FROM '.GetTablePrefix().'CustomField WHERE FieldName = %s AND Type = %s'; $values = $application->Conn->GetOne( sprintf($sql, $application->DB->qstr($field), $item_type ) ); - + // 2. replace any sqls found there $objConfigDummy = new clsConfigAdminItem(); $values = $objConfigDummy->replace_sql($values); - + if(!$values) return ''; if( GetVar($field) ) @@ -964,9 +964,10 @@ if( getArrayValue($attribs, '_confirmtemplate') ) { $url_params['Confirm'] = $attribs['_confirmtemplate']; - $url_params['DestTemplate'] = $var_list['t']; + $url_params['DestTemplate'] = $_REQUEST['DestTemplate'] ? $_REQUEST['DestTemplate'] : $var_list['t']; } if( getArrayValue($attribs, '_errortemplate') ) $url_params['Error'] = $attribs['_errortemplate']; + if( getArrayValue($attribs, '_captchatemplate') ) $url_params['Captcha'] = $attribs['_captchatemplate']; } break; @@ -977,7 +978,7 @@ } else { - $var_list_update['t'] = getArrayValue($_GET, 'DestTemplate') ? $_GET['DestTemplate'] : 'index'; + $var_list_update['t'] = getArrayValue($_GET, 'DestTemplate') ? $_GET['DestTemplate'] : 'index'; } break; @@ -3590,8 +3591,10 @@ */ function m_sitemap($attribs = array()) { - global $objModules, $objConfig, $objCatList; + global $objModules, $objConfig, $objCatList, $m_var_list; + $backup_m_var_list = $m_var_list; + $html_attribs = ExtraAttributes($attribs); $mod_name = getArrayValue($attribs, "_modulename"); @@ -3760,6 +3763,8 @@ $ret.= "\n\n"; } + $m_var_list = $backup_m_var_list; + return $ret; }