Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed condision

  • Loading branch information...
commit 09cfa8b8ed9bc66817b9ec10d21bacefc8b4c723 1 parent 6de2f28
@coolniikou authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 plugins/AccessRankingGA/lib/AccessRankingGA/Plugin.pm
View
10 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} );
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.