From 392ededc71d9555f243104e7ec821ed6dd1f7af4 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 16 Sep 2015 08:13:31 -0400
Subject: [PATCH] Enigma: Enable encryption features on message print page

---
 plugins/enigma/enigma.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/enigma/enigma.php b/plugins/enigma/enigma.php
index bda6ed1..1f406bb 100644
--- a/plugins/enigma/enigma.php
+++ b/plugins/enigma/enigma.php
@@ -50,7 +50,7 @@
             $enabled = $this->rc->config->get('enigma_encryption', true);
 
             // message displaying
-            if ($this->rc->action == 'show' || $this->rc->action == 'preview') {
+            if ($this->rc->action == 'show' || $this->rc->action == 'preview' || $this->rc->action == 'print') {
                 $this->add_hook('message_load', array($this, 'message_load'));
                 $this->add_hook('template_object_messagebody', array($this, 'message_output'));
             }

--
Gitblit v1.9.1