@@ -, +, @@ --- C4/Auth.pm | 2 +- C4/Context.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -93,7 +93,7 @@ C4::Auth - Authenticates Koha users use C4::Auth; use C4::Output; - my $query = new CGI; + my $query = CGI->new; my ($template, $borrowernumber, $cookie) = get_template_and_user( --- a/C4/Context.pm +++ a/C4/Context.pm @@ -211,8 +211,8 @@ sub import { =head2 new - $context = new C4::Context; - $context = new C4::Context("/path/to/koha-conf.xml"); + $context = C4::Context->new; + $context = C4::Context->new("/path/to/koha-conf.xml"); Allocates a new context. Initializes the context from the specified file, which defaults to either the file given by the C<$KOHA_CONF> --