summaryrefslogtreecommitdiff
path: root/roundcubemail/plugins/help/help.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-02-05 14:06:53 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-02-05 14:06:53 +0000
commitdecbd8ce38106007898f1d159872292817b817c8 (patch)
treef2e0cee80c56823cbee41d3a66f6da8378a5376a /roundcubemail/plugins/help/help.php
parent8dc38371f827c7ab8333318f6c08483647cc095a (diff)
- don't load some stuff before login (#1486475)
git-svn-id: https://svn.roundcube.net/trunk@3253 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins/help/help.php')
-rw-r--r--roundcubemail/plugins/help/help.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/roundcubemail/plugins/help/help.php b/roundcubemail/plugins/help/help.php
index c02b7e991..94d06542c 100644
--- a/roundcubemail/plugins/help/help.php
+++ b/roundcubemail/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';