diff --git a/docs/upgrades/upgrade_7.6.1-7.6.2.pl b/docs/upgrades/upgrade_7.6.1-7.6.2.pl index 6319114fb..012697856 100644 --- a/docs/upgrades/upgrade_7.6.1-7.6.2.pl +++ b/docs/upgrades/upgrade_7.6.1-7.6.2.pl @@ -73,12 +73,15 @@ sub installAjaxI18N { my $session = shift; print "\tInstalling the AjaxI18N content handler... " unless $quiet; - my $oldHandlers = $session->config->get( "contentHandlers" ); my @newHandlers; + my $oldHandlers = $session->config->get( "contentHandlers" ); for my $handler ( @{ $oldHandlers } ) { if ( $handler eq "WebGUI::Content::Operation" ) { push @newHandlers, "WebGUI::Content::AjaxI18N"; } + elsif ( $handler eq "WebGUI::Content::AjaxI18N" ) { + next; + } push @newHandlers, $handler; } $session->config->set( "contentHandlers", \@newHandlers );