Revision d56c9b08
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
584 | 584 |
$::lxdebug->leave_sub; |
585 | 585 |
} |
586 | 586 |
|
587 |
sub prepare_global_vars { |
|
588 |
my ($self) = @_; |
|
589 |
|
|
590 |
$self->{AUTH} = $::auth; |
|
591 |
$self->{INSTANCE_CONF} = $::instance_conf; |
|
592 |
$self->{LOCALE} = $::locale; |
|
593 |
$self->{LXCONFIG} = $::lx_office_conf; |
|
594 |
$self->{LXDEBUG} = $::lxdebug; |
|
595 |
$self->{MYCONFIG} = \%::myconfig; |
|
596 |
} |
|
597 |
|
|
587 | 598 |
sub _prepare_html_template { |
588 | 599 |
$main::lxdebug->enter_sub(); |
589 | 600 |
|
SL/Template/LaTeX.pm | ||
---|---|---|
437 | 437 |
$contents = "[% TAGS $self->{tag_start} $self->{tag_end} %]\n" . $contents; |
438 | 438 |
} |
439 | 439 |
|
440 |
$form->prepare_global_vars; |
|
441 |
|
|
440 | 442 |
$::form->init_template->process(\$contents, $form, \$new_contents) || die $::form->template->error; |
441 | 443 |
} else { |
442 | 444 |
$new_contents = $self->parse_block($contents); |
Auch abrufbar als: Unified diff
Druck: Bei template-toolkit auch die globals setzen