Changeset 1873 for branches/release-34/lib/MT/Upgrade.pm
- Timestamp:
- 04/13/08 04:41:46 (20 months ago)
- Files:
-
- 1 modified
-
branches/release-34/lib/MT/Upgrade.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-34/lib/MT/Upgrade.pm
r1866 r1873 368 368 updater => { 369 369 type => 'blog', 370 condition => sub { !(MT::Permission-> count({370 condition => sub { !(MT::Permission->exist({ 371 371 blog_id => $_[0]->id, author_id => 0 })) }, 372 372 code => sub { … … 1480 1480 1481 1481 require MT::Author; 1482 return undef if MT::Author-> count;1482 return undef if MT::Author->exist; 1483 1483 1484 1484 $self->progress($self->translate_escape("Creating initial blog and user records...")); … … 1606 1606 1607 1607 require MT::Role; 1608 return if MT::Role-> count();1608 return if MT::Role->exist(); 1609 1609 1610 1610 foreach my $r (@default_roles) { … … 1673 1673 $terms->{blog_id} = $blog_id; 1674 1674 1675 return 1 if MT::Template-> count( $terms );1675 return 1 if MT::Template->exist( $terms ); 1676 1676 1677 1677 $self->progress($self->translate_escape("Creating new template: '[_1]'.", $val->{name})); … … 1984 1984 require MT::Template; 1985 1985 my $dyn_error_template = 1986 MT::Template-> count({type => 'dynamic_error'});1986 MT::Template->exist({type => 'dynamic_error'}); 1987 1987 if ($dyn_error_template) { 1988 1988 return 3.1; … … 1990 1990 1991 1991 my $comment_pending_template = 1992 MT::Template-> count({type => 'comment_pending'});1992 MT::Template->exist({type => 'comment_pending'}); 1993 1993 if ($comment_pending_template) { 1994 1994 return 3.0;
