Changeset 72 for server


Ignore:
Timestamp:
12/05/10 05:43:44 (14 years ago)
Author:
nanardon
Message:
  • always add user's config in Chat query
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Chat.pm

    r66 r72  
    3434     
    3535    my $reqspec = {}; 
     36    my @contexts = grep { $_ } ( 
     37        $c->user_exists 
     38        ? ( 'default', 
     39            (ref $contexts 
     40                ? (@$contexts) 
     41                : ($contexts) 
     42            ), 
     43        ) 
     44        : () 
     45    ); 
    3646 
    37     foreach my $co (ref $contexts ? @$contexts : $contexts) { 
     47    foreach my $co (@contexts) { 
    3848        if (ref($co) eq 'HASH') { 
    3949            foreach (keys %$co) { 
Note: See TracChangeset for help on using the changeset viewer.