[Catalyst-commits] r6802 - trunk/Catalyst-View-Mason/lib/Catalyst/View

rafl at dev.catalyst.perl.org rafl at dev.catalyst.perl.org
Tue Aug 28 17:03:45 GMT 2007


Author: rafl
Date: 2007-08-28 17:03:44 +0100 (Tue, 28 Aug 2007)
New Revision: 6802

Modified:
   trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm
Log:
Raise a warning when use_match is set to something true.


Modified: trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm
===================================================================
--- trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm	2007-08-28 16:03:41 UTC (rev 6801)
+++ trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm	2007-08-28 16:03:44 UTC (rev 6802)
@@ -90,6 +90,14 @@
 
     delete @config{qw/use_match template_extension/};
 
+    if ($self->config->{use_match}) {
+        $c->log->warn(sprintf(<<'EOW', $self))
+DEPRECATION WARNING: %s sets the use_match config variable to a true value.
+This has been deprecated as been deprecated. Please see the
+Catalyst::View::Mason documentation for details on use_match.
+EOW
+    }
+
     $self->template(
         HTML::Mason::Interp->new(
             %config,




More information about the Catalyst-commits mailing list