Skip to content

Commit

Permalink
Item11492: perltidy
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@14140 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Feb 28, 2012
1 parent e705381 commit 767075e
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions core/lib/Foswiki/UI/Rename.pm
Expand Up @@ -1151,34 +1151,34 @@ sub _newTopicOrAttachmentScreen {
$search = $session->i18n->maketext('(skipped)');
}
else {
if ($tmpl =~ /%GLOBAL_SEARCH%/) {
$refs = _getReferringTopics( $session, $from, 1 );
$resultCount += keys %$refs;
foreach my $entry ( sort keys %$refs ) {
$checkboxAttrs->{value} = $entry;
$search .= CGI::div( { class => 'foswikiTopRow' },
CGI::input($checkboxAttrs) . " [[$entry]] " );
}
unless ($search) {
$search = ( $session->i18n->maketext('(none)') );
}
if ( $tmpl =~ /%GLOBAL_SEARCH%/ ) {
$refs = _getReferringTopics( $session, $from, 1 );
$resultCount += keys %$refs;
foreach my $entry ( sort keys %$refs ) {
$checkboxAttrs->{value} = $entry;
$search .= CGI::div( { class => 'foswikiTopRow' },
CGI::input($checkboxAttrs) . " [[$entry]] " );
}
unless ($search) {
$search = ( $session->i18n->maketext('(none)') );
}
}
}
$tmpl =~ s/%GLOBAL_SEARCH%/$search/o;

if ($tmpl =~ /%LOCAL_SEARCH%/) {
$refs = _getReferringTopics( $session, $from, 0 );
$resultCount += keys %$refs;
$search = '';
foreach my $entry ( sort keys %$refs ) {
$checkboxAttrs->{value} = $entry;
$search .= CGI::div( { class => 'foswikiTopRow' },
CGI::input($checkboxAttrs) . " [[$entry]] " );
}
unless ($search) {
$search = ( $session->i18n->maketext('(none)') );
}
$tmpl =~ s/%LOCAL_SEARCH%/$search/go;
if ( $tmpl =~ /%LOCAL_SEARCH%/ ) {
$refs = _getReferringTopics( $session, $from, 0 );
$resultCount += keys %$refs;
$search = '';
foreach my $entry ( sort keys %$refs ) {
$checkboxAttrs->{value} = $entry;
$search .= CGI::div( { class => 'foswikiTopRow' },
CGI::input($checkboxAttrs) . " [[$entry]] " );
}
unless ($search) {
$search = ( $session->i18n->maketext('(none)') );
}
$tmpl =~ s/%LOCAL_SEARCH%/$search/go;
}
$tmpl =~ s/%SEARCH_COUNT%/$resultCount/go;
}
Expand Down

0 comments on commit 767075e

Please sign in to comment.