ffzg/recall_notices.pl: added --interval and --dedup
[koha.git] / plugins / plugins-home.pl
index a770224..a7d4ce0 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use CGI qw ( -utf8 );
 
 use Koha::Plugins;
 use C4::Auth;
 use C4::Output;
-use C4::Dates;
 use C4::Debug;
 use C4::Context;
 
@@ -51,7 +49,9 @@ if ($plugins_enabled) {
         method       => $method,
     );
 
-    my @plugins = Koha::Plugins->new()->GetPlugins($method);
+    my @plugins = Koha::Plugins->new()->GetPlugins({
+        method => $method,
+    });
 
     $template->param( plugins => \@plugins, );