You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@sergeant.org on 2006/08/24 02:03:07 UTC

[SVN] [113] Allow you to do $plugin->config('foo') as a synonym for $self->config->notes($self->plugin_name .

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};
 }