From 9240c6a7d9053af43fe16629f0a38440c6369fdc Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 24 Jul 2009 12:06:05 +0000 Subject: - support plugin's config file --- plugins/help/README | 1 - plugins/help/config.inc.php.dist | 8 ++++++++ plugins/help/help.php | 7 ++++--- 3 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 plugins/help/README create mode 100644 plugins/help/config.inc.php.dist (limited to 'plugins/help') diff --git a/plugins/help/README b/plugins/help/README deleted file mode 100644 index f1298763a..000000000 --- a/plugins/help/README +++ /dev/null @@ -1 +0,0 @@ -Please refer to main plugin script ... \ No newline at end of file diff --git a/plugins/help/config.inc.php.dist b/plugins/help/config.inc.php.dist new file mode 100644 index 000000000..6b27227b0 --- /dev/null +++ b/plugins/help/config.inc.php.dist @@ -0,0 +1,8 @@ + + \ No newline at end of file diff --git a/plugins/help/help.php b/plugins/help/help.php index 336321c88..c02b7e991 100644 --- a/plugins/help/help.php +++ b/plugins/help/help.php @@ -6,11 +6,10 @@ * @author Aleksander 'A.L.E.C' Machniak * @licence GNU GPL * - * Enable the plugin in config/main.inc.php and set Help content iframe source - * $rcmail_config['help_source'] = 'http://trac.roundcube.net/wiki'; + * Configuration (see config.inc.php.dist) * **/ - + class help extends rcube_plugin { function init() @@ -42,6 +41,8 @@ class help extends rcube_plugin { $rcmail = rcmail::get_instance(); + $this->load_config(); + // register UI objects $rcmail->output->add_handlers(array( 'helpcontent' => array($this, 'content'), -- cgit v1.2.3