Bug 21560: (follow-up) move use at the top
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 5 Mar 2019 14:51:15 +0000 (15:51 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 26 Mar 2019 06:30:40 +0000 (07:30 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 639ad97d844f2774f49881174b559293edd6baa4)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 30c9167dd48d1631f2554fa7897638ae4f4f5186)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 9918ef23a39ff5f69ba60c4fcacc5b830a00773c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

misc/cronjobs/gather_print_notices.pl
reports/guided_reports.pl

index edbe689..ca99635 100755 (executable)
@@ -20,6 +20,7 @@ use Getopt::Long;
 use C4::Log;
 
 use Koha::DateUtils;
+use Koha::Util::OpenDocument;
 use MIME::Lite;
 
 my (
@@ -276,7 +277,6 @@ sub _generate_ods {
     }
 
     # Process
-    use Koha::Util::OpenDocument;
     generate_ods($ods_filepath, $ods_content);
 }
 
index a8b29e5..5d3570e 100755 (executable)
@@ -36,6 +36,7 @@ use Koha::AuthorisedValues;
 use Koha::BiblioFrameworks;
 use Koha::Libraries;
 use Koha::Patron::Categories;
+use Koha::Util::OpenDocument;
 
 =head1 NAME
 
@@ -886,7 +887,6 @@ elsif ($phase eq 'Export'){
                 }
 
                 # Process
-                use Koha::Util::OpenDocument;
                 generate_ods($ods_filepath, $ods_content);
 
                 # Output