BUG8446, QA Followup: Minor Code Tidies
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 23 Sep 2014 14:49:15 +0000 (14:49 +0000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 16 Oct 2014 15:27:59 +0000 (12:27 -0300)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Auth.pm
C4/Auth_with_shibboleth.pm
t/Auth_with_shibboleth.t

index c0bd618..684faae 100644 (file)
@@ -58,12 +58,12 @@ BEGIN {
     $shib        = C4::Context->config('useshibboleth') || 0;
     $caslogout   = C4::Context->preference('casLogout');
     require C4::Auth_with_cas;             # no import
-    require C4::Auth_with_shibboleth;
     if ($ldap) {
     require C4::Auth_with_ldap;
     import C4::Auth_with_ldap qw(checkpw_ldap);
     }
     if ($shib) {
+        require C4::Auth_with_shibboleth;
         import C4::Auth_with_shibboleth
           qw(shib_ok checkpw_shib logout_shib login_shib_url get_login_shib);
 
index ec954cd..d2a4cdf 100644 (file)
@@ -17,8 +17,7 @@ package C4::Auth_with_shibboleth;
 # 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 C4::Debug;
 use C4::Context;
index f400989..bd627e2 100644 (file)
@@ -1,6 +1,5 @@
 #!/usr/bin/perl
 #
-# This Koha test module is a stub!
 # Add more tests here!!!
 
 use Modern::Perl;