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)
committerroot <root@f1ebe1bec408>
Fri, 15 Mar 2019 12:02:46 +0000 (12:02 +0000)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.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 00e0805..0926419 100755 (executable)
@@ -38,6 +38,7 @@ use Koha::BiblioFrameworks;
 use Koha::Libraries;
 use Koha::Patron::Categories;
 use Koha::SharedContent;
+use Koha::Util::OpenDocument;
 
 =head1 NAME
 
@@ -938,7 +939,6 @@ elsif ($phase eq 'Export'){
                 }
 
                 # Process
-                use Koha::Util::OpenDocument;
                 generate_ods($ods_filepath, $ods_content);
 
                 # Output