/[webpac2]/trunk/vhost/webpac2.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/vhost/webpac2.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1228 by dpavlin, Thu Jun 11 18:58:28 2009 UTC revision 1238 by dpavlin, Sun Jul 12 15:10:00 2009 UTC
# Line 125  sub read_config_txt { Line 125  sub read_config_txt {
125  my $attr_labels    = read_config_txt 'labels';  my $attr_labels    = read_config_txt 'labels';
126  my $attr_operators = read_config_txt 'operators';  my $attr_operators = read_config_txt 'operators';
127    
128  my @attr = @{ $attr_labels->{'-values'} };  my @attr = @{ $attr_labels->{'-values'} } if $attr_labels;
129  @attr = keys %{ $stats->{attr} } unless @attr;  @attr = keys %{ $stats->{attr} } unless @attr;
130    
131    
# Line 291  if ( my $search = param('search') ) { Line 291  if ( my $search = param('search') ) {
291                                  next unless defined $data->{$attr};                                  next unless defined $data->{$attr};
292                                  my $v = $data->{$attr};                                  my $v = $data->{$attr};
293                                  if ( $html_markup && ! $html_markup_skip->{$attr} ) {                                  if ( $html_markup && ! $html_markup_skip->{$attr} ) {
294                                          eval "\$v = $html_markup->$attr( \$v );";                                          eval "\$v = $html_markup->$attr( \$v, \$data );";
295                                          if ( $@ ) {                                          if ( $@ ) {
296                                                  warn "disable html markup for $attr: $@";                                                  warn "disable html markup for $attr: $@";
297                                                  $html_markup_skip->{$attr} = $@;                                                  $html_markup_skip->{$attr} = $@;

Legend:
Removed from v.1228  
changed lines
  Added in v.1238

  ViewVC Help
Powered by ViewVC 1.1.26