Ignore:
Timestamp:
Apr 28, 2012, 12:36:51 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Fix Plugin.pm for caspar structure management (don't use tables but hashes)
  • more code in cb still not ready.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • projects/casparbuster/devel/lib/CasparBuster/Plugin.pm

    r1485 r1487  
    8686}
    8787if ((defined $dlist) && (defined $dlist->{$plugin}) && ($dlist->{$plugin} !~ /^\s*$/)) {
    88     my $i = 0;
    8988    foreach my $block (split(/;/,$dlist->{$plugin})) {
    9089        pb_log(3,"block : $block\n");
    91         my $tmp;
    92         ($cbp->{$plugin}->{'dirs'}->{'name'}[$i],$tmp) = split(/\|/,$block);
    93         ($cbp->{$plugin}->{'dirs'}->{'uid'}[$i],$cbp->{$plugin}->{'dirs'}->{'gid'}[$i],$cbp->{$plugin}->{'dirs'}->{'mode'}[$i]) = split(/\,/,$tmp);
    94         $i++;
     90        ($name,$tmp) = split(/\|/,$block);
     91        ($cbp->{$plugin}->{'dirs'}->{$name}->{'uid'},$cbp->{$plugin}->{'dirs'}->{$name}->{'gid'},$cbp->{$plugin}->{'dirs'}->{$name}->{'mode'}) = split(/\,/,$tmp);
    9592    }
    9693}
Note: See TracChangeset for help on using the changeset viewer.