> + # skip if we have a particular browser type
> + if ( $c->request->browser
> + and $c->request->browser->windows
> + and $c->request->browser->ie
> + and $c->request->browser->major()
<
> + ( $c->config->->
|| 0 ) )
Unless I'm missing something, these are going to blow up
(throw an
exception) if you don't have C::P::Browser. I think you
should try
calling can first:
if ($c->request->can('browser')->() &&
...
Regards,
Jonathan Rockway
_______________________________________________
Catalyst-dev mailing list
Catalyst-dev lists.rawmode.org
http://lists.rawmode.org/mailman/listinfo/catalyst-dev
|