Permalink
Browse files

changed condision

  • Loading branch information...
1 parent 6de2f28 commit 09cfa8b8ed9bc66817b9ec10d21bacefc8b4c723 @coolniikou committed Jun 18, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 plugins/AccessRankingGA/lib/AccessRankingGA/Plugin.pm
@@ -64,12 +64,12 @@ sub _hdlr_analytic_tags {
my $data = &get_data( $token, $conf );
my $parser = XML::Simple->new( Forcearray => 1 );
my $xml = $parser->XMLin($data);
- if ( MT->VERSION > 4 ) {
- foreach my $xentry ( @{ $xml->{entry} } ) {
- $entry->{title}[0] = decode( 'utf-8', $entry->{title}[0] );
- $entry->{'dxp:dimension'}->{'ga:pageTitle'}->{value} =
+ if ( MT->VERSION >= 5 ) {
+ foreach my $item ( @{ $xml->{entry} } ) {
+ $item->{title}[0] = decode( 'utf-8', $item->{title}[0] );
+ $item->{'dxp:dimension'}->{'ga:pageTitle'}->{value} =
decode( 'utf-8',
- $entry->{'dxp:dimension'}->{'ga:pageTitle'}->{value} );
+ $item->{'dxp:dimension'}->{'ga:pageTitle'}->{value} );
}
}

0 comments on commit 09cfa8b

Please sign in to comment.