Bug 23034: (RM follow-up) Consistent coding style
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 24 Jun 2019 13:48:27 +0000 (14:48 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 24 Jun 2019 13:49:24 +0000 (14:49 +0100)
We had a mix of q||, q{} and '' in this one script. This followup just
makes them all conform to our standard style of q{}.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

admin/share_content.pl

index 4f46316..46f270e 100755 (executable)
@@ -38,10 +38,10 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     }
 );
 
-my $op = $query->param('op') || q||;
+my $op = $query->param('op') || q{};
 
 if ( $op eq 'save' ) {
-    my $auto_share = $query->param('autosharewithmana') || q||;
+    my $auto_share = $query->param('autosharewithmana') || q{};
     my $mana = $query->param('mana');
 
     C4::Context->set_preference('Mana', $mana);
@@ -78,7 +78,7 @@ if ( $op eq 'send' ) {
 }
 
 
-my $mana_url = C4::Context->config('mana_config') || '';
+my $mana_url = C4::Context->config('mana_config') || q{};
 
 $template->param(
     mana_url    => $mana_url,