[Catalyst-commits] r9590 -
trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Authentication
jayk at dev.catalyst.perl.org
jayk at dev.catalyst.perl.org
Sat Mar 28 01:52:45 GMT 2009
Author: jayk
Date: 2009-03-28 01:52:44 +0000 (Sat, 28 Mar 2009)
New Revision: 9590
Modified:
trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Authentication/Realm.pm
Log:
A better fix for the realm class name warning problem.
Modified: trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Authentication/Realm.pm
===================================================================
--- trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Authentication/Realm.pm 2009-03-28 01:43:46 UTC (rev 9589)
+++ trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Authentication/Realm.pm 2009-03-28 01:52:44 UTC (rev 9590)
@@ -31,9 +31,11 @@
# use the Null store as a default - Don't complain if the realm class is being overridden,
# as the new realm may behave differently.
- if( ! exists($config->{store}{class}) && ! exists($config->{class}) ) {
+ if( ! exists($config->{store}{class}) ) {
$config->{store}{class} = '+Catalyst::Authentication::Store::Null';
- $app->log->debug( qq(No Store specified for realm "$realmname", using the Null store.) );
+ if (! exists($config->{class})) {
+ $app->log->debug( qq(No Store specified for realm "$realmname", using the Null store.) );
+ }
}
my $storeclass = $config->{'store'}{'class'};
More information about the Catalyst-commits
mailing list