From 912f238c5e4efa275e74cde77de184473e1f2dd7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 13 Oct 2015 14:56:10 +0000 Subject: [PATCH] Bug 15005: Replace CGI->url with the corresponding url CGI->url does not return the correct url on install using packages. Test plan: 1/ Try to reproduce the bug from the description of bug 15005. You should be able to login to the intranet and the OPAC 2/ Send a basket and a list from the intranet and the OPAC. Signed-off-by: Josef Moravec Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/Auth.pm | 2 -- C4/InstallAuth.pm | 2 -- koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 2 +- .../intranet-tmpl/prog/en/modules/basket/sendbasketform.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt | 2 +- .../prog/en/modules/virtualshelves/sendshelfform.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt | 2 +- 9 files changed, 7 insertions(+), 11 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index ef0c585da4..284cfe71ca 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1245,9 +1245,7 @@ sub checkauth { ); } - my $self_url = $query->url( -absolute => 1 ); $template->param( - url => $self_url, LibraryName => C4::Context->preference("LibraryName"), ); $template->param(%info); diff --git a/C4/InstallAuth.pm b/C4/InstallAuth.pm index c1eba6ae07..de304bac01 100644 --- a/C4/InstallAuth.pm +++ b/C4/InstallAuth.pm @@ -381,8 +381,6 @@ sub checkauth { $template->param( login => 1 ); $template->param( loginprompt => 1 ) unless $info{'nopermission'}; - my $self_url = $query->url( -absolute => 1 ); - $template->param( url => $self_url, ); $template->param( \%info ); $cookie = $query->cookie( -name => 'CGISESSID', diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt index b43143fd34..cfd7efe4c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt @@ -40,7 +40,7 @@ [% END %] -
+ [% FOREACH INPUT IN INPUTS %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasketform.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasketform.tt index d0f7957b0f..93a0f9d7b1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasketform.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasketform.tt @@ -16,7 +16,7 @@ [% ELSE %] - +
Sending your cart diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt index d55c71e5a4..c3509cd903 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt @@ -29,7 +29,7 @@ [% IF ( loginprompt ) %] - + [% FOREACH INPUT IN INPUTS %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt index e38a071667..8c44afa595 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelfform.tt @@ -15,7 +15,7 @@ [% ELSE %] - +
Sending your list diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt index 6a3f9e2b5c..3dc1c56ec9 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt @@ -138,7 +138,7 @@ [% END # / IF casAuthentication %] - +
[% FOREACH INPUT IN INPUTS %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt index ad4ce3318f..aa46c6a27e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt @@ -27,7 +27,7 @@ [% ELSE %]

Sending your cart

- +
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt index 3b38535b02..14a91654db 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelfform.tt @@ -30,7 +30,7 @@

Back to lists

[% ELSE %]

Sending your list

- +
-- 2.39.5