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/archive/archive.php | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/archive/archive.php b/plugins/archive/archive.php index 27887ce..d2269ba 100644 --- a/plugins/archive/archive.php +++ b/plugins/archive/archive.php @@ -15,15 +15,17 @@ function init() { + $rcmail = rcmail::get_instance(); + + if (!$rcmail->user->ID) + return; + $this->register_action('plugin.archive', array($this, 'request_action')); // There is no "Archived flags" // $GLOBALS['IMAP_FLAGS']['ARCHIVED'] = 'Archive'; - - $rcmail = rcmail::get_instance(); if ($rcmail->task == 'mail' && ($rcmail->action == '' || $rcmail->action == 'show') && ($archive_folder = $rcmail->config->get('archive_mbox'))) { - $skin_path = $this->local_skin_path(); $this->include_script('archive.js'); -- Gitblit v1.9.1