Changeset 2672

Show
Ignore:
Timestamp:
07/01/08 21:57:57 (20 months ago)
Author:
mpaschal
Message:

Look for the field class once, outside loops
BugzID: 80404

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/lib/MT/Upgrade.pm

    r2663 r2672  
    11881188 
    11891189    my @ids; 
     1190    my $cfclass = MT->model('field'); 
    11901191    while (my $row = $sth->fetchrow_arrayref) { 
    11911192        $rows++; 
     
    12071208                            my $metavalue = $metadata->{$metaname}; 
    12081209                            if ($metaname eq 'customfields') { 
    1209                                 my $cfclass = MT->model('field'); 
    12101210                                next unless $cfclass; 
    12111211