Revision: 113
Author:   matt
Date:     2006-08-24 00:02:41 +0000 (Thu, 24 Aug 2006)

Log Message:
-----------
Allow you to do $plugin->config('foo') as a synonym for 
$self->config->notes($self->plugin_name . '::foo')

Modified Paths:
--------------
    trunk/lib/AxKit2/Plugin.pm

Modified: trunk/lib/AxKit2/Plugin.pm
===================================================================
--- trunk/lib/AxKit2/Plugin.pm  2006-08-24 00:01:51 UTC (rev 112)
+++ trunk/lib/AxKit2/Plugin.pm  2006-08-24 00:02:41 UTC (rev 113)
@@ -74,6 +74,10 @@
 
 sub config {
     my $self = shift;
+    if (@_) {
+        my $key = shift;
+        return $self->{_config}->notes($self->plugin_name . "::$key", @_);
+    }
     $self->{_config};
 }
 


Reply via email to