#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1051217126', 'name' => 'global/code-error.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n"; if (!($stash->get('header_done'))) { $output .= $context->process('global/header.html.tmpl'); } $output .= "\n\n\n

\n Bugzilla has suffered an internal error. Please save this page and send\n it to "; $output .= $stash->get(['Param', [ 'maintainer' ]]); $output .= " with details of what you were doing at \n the time this message appeared.\n

\n \n
\n\n\n \n \n \n
\n "; $output .= $stash->get('error'); $output .= "\n \n
\n"; if ($stash->get('variables')) { $output .= "\n
\nVariables:";
    
    # FOREACH 
    do {
        my ($value, $error, $oldloop);
        my $list = $stash->get(['variables', 0, 'keys', 0]);
        
        unless (UNIVERSAL::isa($list, 'Template::Iterator')) {
            $list = Template::Config->iterator($list)
                || die $Template::Config::ERROR, "\n"; 
        }
    
        ($value, $error) = $list->get_first();
        eval { $oldloop = $stash->get('loop') };
        $stash->set('loop', $list);
        eval {
    LOOP:   while (! $error) {
                $stash->{'key'} = $value;
    $output .=  "\n    ";
    
    # FILTER
    $output .=  do {
        my $output = '';
        my $filter = $context->filter('html')
                  || $context->throw($context->error);
    
    $output .=  $stash->get('key');
        
        &$filter($output);
    };
    
    $output .=  ": ";
    
    # FILTER
    $output .=  do {
        my $output = '';
        my $filter = $context->filter('html')
                  || $context->throw($context->error);
    
    $output .=  $stash->get(['variables', 0, $stash->get('key'), 0]);
        
        &$filter($output);
    };
    ;
                ($value, $error) = $list->get_next();
            }
        };
        $stash->set('loop', $oldloop);
        die $@ if $@;
        $error = 0 if $error && $error eq Template::Constants::STATUS_DONE;
        die $error if $error;
    };
    
    $output .=  "\n  
"; } $output .= "\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { }, });