Changeset 3617

Show
Ignore:
Timestamp:
04/10/09 09:13:44 (12 months ago)
Author:
fumiakiy
Message:

Removed calls to encode_text from various places.

Location:
branches/feature-utf8-strings/lib
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/feature-utf8-strings/lib/MT.pm

    r3593 r3617  
    1212use File::Basename; 
    1313use MT::Util qw( weaken ); 
    14 use MT::I18N qw( encode_text ); 
     14use MT::I18N; 
    1515 
    1616our ( $VERSION,      $SCHEMA_VERSION ); 
     
    17221722              . ( $res->{good} 
    17231723                ? '' 
    1724                 : ' ' . MT::I18N::encode_text( $res->{error} ) ); 
     1724                : ' ' . $res->{error} ); 
    17251725        } 
    17261726        $entry->pinged_urls( join "\n", @$pinged ); 
     
    22382238        my $q = $mt->{query}; 
    22392239        if ($mode) { 
    2240             my @query = map { { name => $_, value => scalar encode_text( $q->param($_) ) }; } 
     2240            my @query = map { { name => $_, value => $q->param($_) }; } 
    22412241                grep { ($_ ne 'username') && ($_ ne 'password') && ($_ ne 'submit') && ($mode eq 'logout' ? ($_ ne '__mode') : 1) } $q->param; 
    22422242            $param->{query_params} = \@query; 
  • branches/feature-utf8-strings/lib/MT/CMS/Common.pm

    r3531 r3617  
    444444    $app->remove_preview_file; 
    445445 
    446     my $enc = $app->config->PublishCharset; 
    447446    if ( $q->param('_recover') ) { 
    448447        my $sess_obj = $app->autosave_session_obj; 
     
    464463        foreach (qw( title text )) { 
    465464            my $data = $q->param($_); 
    466             my $encoded = MT::I18N::encode_text( $data, undef, $enc ) 
    467               if $data; 
    468             $q->param( $_, $encoded ); 
     465            $q->param( $_, $data ); 
    469466        } 
    470467    } 
  • branches/feature-utf8-strings/lib/MT/CMS/Entry.pm

    r3531 r3617  
    44use MT::Util qw( format_ts relative_date remove_html encode_html encode_js 
    55    encode_url archive_file_for offset_time_list ); 
    6 use MT::I18N qw( substr_text const length_text wrap_text encode_text 
     6use MT::I18N qw( substr_text const length_text wrap_text 
    77    break_up_text first_n_text guess_encoding ); 
    88 
     
    17441744                    "Ping '[_1]' failed: [_2]", 
    17451745                    $res->{url}, 
    1746                     encode_text( $res->{error}, undef, undef ) 
     1746                    $res->{error} 
    17471747                ), 
    17481748                class => 'system', 
  • branches/feature-utf8-strings/lib/MT/CMS/Tools.pm

    r3531 r3617  
    44use Symbol; 
    55 
    6 use MT::I18N qw( encode_text wrap_text ); 
     6use MT::I18N qw( wrap_text ); 
    77use MT::Util qw( encode_url encode_html decode_html encode_js trim ); 
    88 
     
    7272            $syscheck_object = undef; 
    7373        } 
    74         return encode_text( $syscheck_object->data(), 'utf-8', undef ) 
     74        return $syscheck_object->data() 
    7575          if ($syscheck_object); 
    7676 
     
    9999            ); 
    100100            $syscheck_object->save(); 
    101             $result = encode_text( $result, 'utf-8', undef ); 
    102101        } 
    103102        return $result;