Skip to content

Commit

Permalink
Item15151: fix some perl critics
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jun 29, 2022
1 parent b93acea commit 6eded1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use Foswiki::Func ();
BEGIN {
# Backwards compatibility for Foswiki 1.1.x
unless ( Foswiki::Request->can('multi_param') ) {
no warnings 'redefine';
no warnings 'redefine'; ## no critic
*Foswiki::Request::multi_param = \&Foswiki::Request::param;
use warnings 'redefine';
}
Expand Down
2 changes: 1 addition & 1 deletion JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ sub renderI18N {
my $messagePath = $path . '/' . $langTag . '.js';
my $messageFile = $Foswiki::cfg{PubDir} . '/' . $messagePath;
if ( -f $messageFile ) {
my $text .=
my $text =
"<script type='application/l10n' data-i18n-language='$langTag' data-i18n-namespace='"
. uc( $this->{name} )
. "' data-i18n-src='$Foswiki::cfg{PubUrlPath}/$messagePath' ></script>\n";
Expand Down
2 changes: 1 addition & 1 deletion JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/VALIDATE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ sub init {
. $langTag . '.js';
my $messageFile = $Foswiki::cfg{PubDir} . '/' . $messagePath;
if ( -f $messageFile ) {
my $text .=
my $text =
"<script src='$Foswiki::cfg{PubUrlPath}/$messagePath'></script>\n";
Foswiki::Func::addToZone(
'script', "JQUERYPLUGIN::VALIDATE::LANG",
Expand Down

0 comments on commit 6eded1b

Please sign in to comment.