- Timestamp:
- 06/13/08 03:20:08 (18 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-40/lib/MT/BackupRestore/BackupFileHandler.pm
r2298 r2564 42 42 die MT->translate('Uploaded file was not a valid Movable Type backup manifest file.') 43 43 if !(('movabletype' eq $name) && (MT::BackupRestore::NS_MOVABLETYPE() eq $ns)); 44 unless ($self->{ignore_schema_conflicts}) {44 #unless ($self->{ignore_schema_conflicts}) { 45 45 my $schema = $attrs->{'{}schema_version'}->{Value}; 46 if (('ignore' ne $self->{schema_version}) && ($schema > $self->{schema_version})) { 46 #if (('ignore' ne $self->{schema_version}) && ($schema > $self->{schema_version})) { 47 if ( $schema != $self->{schema_version} ) { 47 48 $self->{critical} = 1; 48 my $message = MT->translate('Uploaded file was backed up from Movable Type with the newer schema version ([_1]) thanthe one in this system ([_2]). It is not safe to restore the file to this version of Movable Type.', MT::I18N::encode_text(MT::I18N::utf8_off($schema), 'utf-8'), $self->{schema_version});49 my $message = MT->translate('Uploaded file was backed up from Movable Type but the different schema version ([_1]) from the one in this system ([_2]). It is not safe to restore the file to this version of Movable Type.', MT::I18N::encode_text(MT::I18N::utf8_off($schema), 'utf-8'), $self->{schema_version}); 49 50 MT->log({ 50 51 message => $message, … … 55 56 die $message; 56 57 } 57 }58 #} 58 59 $self->{start} = 0; 59 60 return 1;
