Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 59e92128

Von Moritz Bunkus vor mehr als 15 Jahren hinzugefügt

  • ID 59e9212845300cc6f63fd30427d27342994764d6
  • Vorgänger e05d94ad
  • Nachfolger fbc3a232

Kosmetik.

Unterschiede anzeigen:

SL/Template.pm
169 169

  
170 170
  my $ary = $self->_get_loop_variable($var, 1, @indices);
171 171

  
172
  my $sum = 0;
173
  my $current_page = 1;
172
  my $sum                          = 0;
173
  my $current_page                 = 1;
174 174
  my ($current_line, $corrent_row) = (0, 1);
175
  my $description_array     = $self->_get_loop_variable("description",1);
176
  my $longdescription_array = $self->_get_loop_variable("longdescription",1);
175
  my $description_array            = $self->_get_loop_variable("description",     1);
176
  my $longdescription_array        = $self->_get_loop_variable("longdescription", 1);
177 177

  
178 178
  for (my $i = 0; $i < scalar(@{$ary}); $i++) {
179
    $form->{"__first__"} = $i == 0;
180
    $form->{"__last__"} = ($i + 1) == scalar(@{$ary});
181
    $form->{"__odd__"} = (($i + 1) % 2) == 1;
179
    $form->{"__first__"}   = $i == 1;
180
    $form->{"__last__"}    = ($i + 1) == scalar(@{$ary});
181
    $form->{"__odd__"}     = (($i + 1) % 2) == 1;
182 182
    $form->{"__counter__"} = $i + 1;
183 183

  
184 184
    if (scalar @{$description_array} == scalar @{$ary} && $self->{"chars_per_line"} != 0) {

Auch abrufbar als: Unified diff