Changeset 4930

Show
Ignore:
Timestamp:
10/29/09 11:17:46 (4 weeks ago)
Author:
fumiakiy
Message:

Call class-specific populate method for behavior modification. BugId:102938

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/greyhound/lib/MT/BackupRestore.pm

    r4749 r4930  
    142142            ? $instructions->{$key}{order} 
    143143            : 500; 
    144         $pkg->_create_obj_to_backup( 
    145             $class, $blog_ids, \@object_hashes, \%populated, $order); 
     144 
     145        if ( $class->can('create_obj_to_backup') ) { 
     146            $class->create_obj_to_backup( 
     147                $blog_ids, \@object_hashes, \%populated, $order); 
     148        } 
     149        else { 
     150            $pkg->_create_obj_to_backup( 
     151                $class, $blog_ids, \@object_hashes, \%populated, $order); 
     152        } 
    146153    } 
    147154