From 6a7d063e61f164be212bc7475aa6fb82ce1a8200 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Fri, 05 Feb 2010 09:06:53 -0500 Subject: [PATCH] - don't load some stuff before login (#1486475) --- plugins/help/help.php | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/plugins/help/help.php b/plugins/help/help.php index c02b7e9..94d0654 100644 --- a/plugins/help/help.php +++ b/plugins/help/help.php @@ -14,6 +14,11 @@ { function init() { + $rcmail = rcmail::get_instance(); + + if (!$rcmail->user->ID) + return; + $this->add_texts('localization/', false); // register actions @@ -29,7 +34,7 @@ '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'; -- Gitblit v1.9.1