Created
December 27, 2014 04:20
-
-
Save false-git/852c47bfe1179cb6a5a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/lib/MT/Object.pm | |
+++ b/lib/MT/Object.pm | |
@@ -301,10 +301,10 @@ sub install_properties { | |
return unless $dbd->need_encode; | |
my $data = $obj->get_values; | |
- foreach ( keys %$data ) { | |
- $data->{$_} = Encode::encode( $enc, $data->{$_} ) | |
- if Encode::is_utf8( $data->{$_} ); | |
- } | |
+# foreach ( keys %$data ) { | |
+# $data->{$_} = Encode::encode( $enc, $data->{$_} ) | |
+# if Encode::is_utf8( $data->{$_} ); | |
+# } | |
$obj->set_values( $data, { no_changed_flag => 1 } ); | |
}, | |
); | |
@@ -318,12 +318,12 @@ sub install_properties { | |
if ( 'HASH' eq ref($terms) ) { | |
while ( my ( $k, $v ) = each %$terms ) { | |
- $terms->{$k} = _encode_terms($v); | |
+# $terms->{$k} = _encode_terms($v); | |
} | |
} | |
elsif ( 'ARRAY' eq ref($terms) ) { | |
for ( my $i = 0; $i < scalar(@$terms); ++$i ) { | |
- $terms->[$i] = _encode_terms( $terms->[$i] ); | |
+# $terms->[$i] = _encode_terms( $terms->[$i] ); | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment