Changeset 1902
- Timestamp:
- 04/15/08 01:42:41 (19 months ago)
- Location:
- branches/release-35/lib/MT
- Files:
-
- 2 modified
-
BackupRestore.pm (modified) (1 diff)
-
CMS/Tools.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-35/lib/MT/BackupRestore.pm
r1823 r1902 469 469 old_id => $old_id, 470 470 }; 471 } elsif ( $key =~ /^MT::Author#(\d+)$/ ) { 472 # restore userpic association now 473 my $new_author = $all_objects->{$key}; 474 if ( my $userpic_id = $new_author->userpic_asset_id ) { 475 if ( my $new_asset = $all_objects->{'MT::Asset#' . $userpic_id} ) { 476 $new_author->userpic_asset_id( $new_asset->id ); 477 $new_author->update; 478 } 479 } 471 480 } 472 481 } -
branches/release-35/lib/MT/CMS/Tools.pm
r1823 r1902 2 2 3 3 use strict; 4 use Symbol; 4 5 5 6 use MT::I18N qw( encode_text );
