Changeset 4975

Show
Ignore:
Timestamp:
11/04/09 02:42:31 (3 weeks ago)
Author:
takayama
Message:

* Fixed to work exclude_websites modifier on both of static and dynamic. bugid:102986

Location:
branches/greyhound-rc-1
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/greyhound-rc-1/lib/MT/Upgrade/v3.pm

    r4196 r4975  
    690690} 
    691691 
     692sub core_set_superuser { 
     693# TODO 
     694#    my $self = shift; 
     695# 
     696#    local $SuperUser = $opt{SuperUser} || ''; 
     697# 
     698#    my $app = $App; 
     699#    my $author; 
     700#    if ((ref $app) && ($app->{author})) { 
     701#        require MT::Author; 
     702#        $self->progress($self->translate_escape("Setting your permissions to administrator.")); 
     703#        $author = MT::Author->load($app->{author}->id); 
     704#    } elsif ($SuperUser) { 
     705#        require MT::Author; 
     706#        $self->progress($self->translate_escape("Setting your permissions to administrator.")); 
     707#        $author = MT::Author->load($SuperUser); 
     708#    } 
     709# 
     710#    if ($author) { 
     711#        $author->is_superuser(1); 
     712#        $author->save or return $self->error($self->translate_escape("Error saving record: [_1].", $author->errstr)); 
     713#    } 
     714# 
     715    1; 
     716} 
     717 
    6927181; 
  • branches/greyhound-rc-1/php/lib/mtdb.base.php

    r4844 r4975  
    8181            unset($args['include_websites']); 
    8282            $is_excluded = 0; 
    83         } elseif (isset($args['exclude_blogs']) || isset($args['exclude_blogs'])) { 
     83        } elseif (isset($args['exclude_blogs']) || isset($args['exclude_websites'])) { 
    8484            $attr = $args['exclude_blogs']; 
    8585            $attr or $attr = $args['exclude_websites'];