Changeset 2060

Show
Ignore:
Timestamp:
04/24/08 21:16:10 (22 months ago)
Author:
bchoate
Message:

Added new auth_type_name index.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-36/lib/MT/Author.pm

    r1927 r2060  
    2929        'status' => 'integer', 
    3030        'external_id' => 'string(255)', 
    31 #        'last_login' => 'datetime', 
     31        #'last_login' => 'datetime', 
     32 
    3233        # deprecated; permissions are in MT::Permission only now 
    3334        'can_create_blog' => 'boolean', 
     
    5354        status => 1, 
    5455        external_id => 1, 
    55         auth_type => 1, 
     56        auth_type_name => { 
     57            columns => ['auth_type', 'name', 'type'], 
     58        }, 
    5659        basename => 1, 
    57         # is_superuser => 1, 
    5860    }, 
    5961    meta => 1, 
     
    702704        %param, 
    703705    ); 
     706    if ($info[0] !~ m!^https?://!) { 
     707        my $static_host = MT->instance->static_path; 
     708        if ($static_host =~ m!^https?://!) { 
     709            $static_host =~ s!^(https?://[^/]+?)!$1!; 
     710            $info[0] = $static_host . $info[0]; 
     711        } 
     712    } 
    704713    return wantarray ? @info : $info[0]; 
    705714}