diff options
author | alecpl <alec@alec.pl> | 2010-02-05 14:06:53 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-02-05 14:06:53 +0000 |
commit | 6a7d063e61f164be212bc7475aa6fb82ce1a8200 (patch) | |
tree | 436b753a92754ce754d45113fb62ba0b8daa74db /plugins/markasjunk | |
parent | b77c9d4669ec9596c8d39d0dec29c8a343aaa155 (diff) |
- don't load some stuff before login (#1486475)
Diffstat (limited to 'plugins/markasjunk')
-rw-r--r-- | plugins/markasjunk/markasjunk.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/markasjunk/markasjunk.php b/plugins/markasjunk/markasjunk.php index cf81883fc..9f75590c8 100644 --- a/plugins/markasjunk/markasjunk.php +++ b/plugins/markasjunk/markasjunk.php @@ -15,9 +15,13 @@ class markasjunk extends rcube_plugin function init() { - $this->register_action('plugin.markasjunk', array($this, 'request_action')); - $rcmail = rcmail::get_instance(); + + if (!$rcmail->user->ID) + return; + + $this->register_action('plugin.markasjunk', array($this, 'request_action')); + if ($rcmail->action == '' || $rcmail->action == 'show') { $skin_path = $this->local_skin_path(); $this->include_script('markasjunk.js'); |