From decbd8ce38106007898f1d159872292817b817c8 Mon Sep 17 00:00:00 2001 From: alec Date: Fri, 5 Feb 2010 14:06:53 +0000 Subject: - don't load some stuff before login (#1486475) git-svn-id: https://svn.roundcube.net/trunk@3253 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/plugins/help/help.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'roundcubemail/plugins/help/help.php') 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'; -- cgit v1.2.3