From 9b94eb64153a7dc6555d6b9a30a35296ce592f82 Mon Sep 17 00:00:00 2001 From: alecpl Date: Sat, 6 Feb 2010 18:12:49 +0000 Subject: - Fix setting task name according to auth state. So, any action before user is authenticated is assigned to 'login' task instead of 'mail'. Now binding plugins to 'login' task is possible and realy usefull. It's also possible to bind to all tasks excluding 'login'. --- plugins/help/help.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/help') diff --git a/plugins/help/help.php b/plugins/help/help.php index 94d06542c..a7b3d5793 100644 --- a/plugins/help/help.php +++ b/plugins/help/help.php @@ -12,13 +12,13 @@ class help extends rcube_plugin { + // all task excluding 'login' and 'logout' + public $task = '?(?!login|logout).*'; + function init() { $rcmail = rcmail::get_instance(); - if (!$rcmail->user->ID) - return; - $this->add_texts('localization/', false); // register actions -- cgit v1.2.3