Revision 408

Date:
2014/01/25 08:13:33
Author:
ahitrov
Revision Log:
Get name_full and name_part from profile if possible
Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/session/lib/session/Keeper.pm

     
    319 319 status => $profile->status,
    320 320 ltime => time,
    321 321 );
    322 if ( $profile->can('name_full') ) {
    323 $data{name_full} = $profile->name_full;
    324 }
    325 if ( $profile->can('name_part') ) {
    326 $data{name_part} = $profile->name_part;
    327 }
    322 328 my ($type_prop) = grep { $_->{attr} eq 'type' } $profile->structure;
    323 329 $data{type} = $profile->type if $type_prop;
    324 330 my ($ava_prop) = grep { $_->{attr} eq 'avatar' } $profile->structure;