Changeset 1720

Show
Ignore:
Timestamp:
04/02/08 17:39:03 (15 months ago)
Author:
bchoate
Message:

Fixed usage of COMMENTER_COOKIE constant. BugId:69872

Location:
branches/release-33/lib/MT/Auth
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/release-33/lib/MT/Auth/OpenID.pm

    r1340 r1720  
    117117        # If there's no signature, then we trust the cookie. 
    118118        my %cookies = $app->cookies(); 
    119         if ($cookies{$app->COMMENTER_COOKIE_NAME()} 
    120             && ($session = $cookies{$app->COMMENTER_COOKIE_NAME()}->value()))  
     119        my $cookie_name = MT::App::COMMENTER_COOKIE_NAME(); 
     120        if ($cookies{$cookie_name} 
     121            && ($session = $cookies{$cookie_name}->value()))  
    121122        { 
    122123            require MT::Session; 
  • branches/release-33/lib/MT/Auth/TypeKey.pm

    r1174 r1720  
    7676        # If there's no signature, then we trust the cookie. 
    7777        my %cookies = $app->cookies(); 
    78         if ($cookies{$app->COMMENTER_COOKIE_NAME()} 
    79             && ($session = $cookies{$app->COMMENTER_COOKIE_NAME()}->value()))  
     78        my $cookie_name = MT::App::COMMENTER_COOKIE_NAME(); 
     79        if ($cookies{$cookie_name} 
     80            && ($session = $cookies{$cookie_name}->value()))  
    8081        { 
    8182            require MT::Session;