summaryrefslogtreecommitdiff
path: root/plugins/help/help.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-02-05 14:06:53 +0000
committeralecpl <alec@alec.pl>2010-02-05 14:06:53 +0000
commit6a7d063e61f164be212bc7475aa6fb82ce1a8200 (patch)
tree436b753a92754ce754d45113fb62ba0b8daa74db /plugins/help/help.php
parentb77c9d4669ec9596c8d39d0dec29c8a343aaa155 (diff)
- don't load some stuff before login (#1486475)
Diffstat (limited to 'plugins/help/help.php')
-rw-r--r--plugins/help/help.php7
1 files changed, 6 insertions, 1 deletions
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';