From 6a7d063e61f164be212bc7475aa6fb82ce1a8200 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 5 Feb 2010 14:06:53 +0000 Subject: - don't load some stuff before login (#1486475) --- plugins/help/help.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/help') diff --git a/plugins/help/help.php b/plugins/help/help.php index c02b7e991..94d06542c 100644 --- a/plugins/help/help.php +++ b/plugins/help/help.php @@ -14,6 +14,11 @@ class help extends rcube_plugin { function init() { + $rcmail = rcmail::get_instance(); + + if (!$rcmail->user->ID) + return; + $this->add_texts('localization/', false); // register actions @@ -29,7 +34,7 @@ class help extends rcube_plugin 'href' => './?_task=dummy&_action=plugin.help', ), 'taskbar'); - $skin = rcmail::get_instance()->config->get('skin'); + $skin = $rcmail->config->get('skin'); if (!file_exists($this->home."/skins/$skin/help.css")) $skin = 'default'; -- cgit v1.2.3