Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 072d299d

Von Sven Schöling vor etwa 13 Jahren hinzugefügt

  • ID 072d299d85184192341ba0a520209ffe31b6bb66
  • Vorgänger 97bea1c1
  • Nachfolger cf4ac170

Parameter extra_code von form->header auf %params ungeschrieben

Unterschiede anzeigen:

SL/Form.pm
674 674

  
675 675
  # extra code is currently only used by menuv3 and menuv4 to set their css.
676 676
  # it is strongly deprecated, and will be changed in a future version.
677
  my ($self, $extra_code) = @_;
677
  my ($self, %params) = @_;
678 678
  my $db_charset = $::lx_office_conf{system}->{dbcharset} || Common::DEFAULT_CHARSET;
679 679
  my @header;
680 680

  
......
746 746
   ***********************************************/
747 747

  
748 748
  </script>
749
  $extra_code
749
  $params{extra_code}
750 750
  $title_hack
751 751
 </head>
752 752

  
bin/mozilla/menuv3.pl
44 44
sub display {
45 45
  my $form     = $main::form;
46 46

  
47
  $form->header(qq|<link rel="stylesheet" href="css/menuv3.css?id=" type="text/css">|);
47
  $form->header(extra_code => qq|<link rel="stylesheet" href="css/menuv3.css?id=" type="text/css">|);
48 48

  
49 49
  $form->{date}     = clock_line();
50 50
  $form->{menu}     = acc_menu();
bin/mozilla/menuv4.pl
44 44
sub display {
45 45
  my $form     = $main::form;
46 46

  
47
  $form->header(qq|<link rel="stylesheet" href="css/menuv4.css?id=" type="text/css">|);
47
  $form->header(extra_code => qq|<link rel="stylesheet" href="css/menuv4.css?id=" type="text/css">|);
48 48

  
49 49
  $form->{date}     = clock_line();
50 50
  $form->{menu}     = acc_menu();

Auch abrufbar als: Unified diff