From f40c942e9c990173796eba50a58bdf93a37ae858 Mon Sep 17 00:00:00 2001 From: phy25 Date: Sat, 15 Apr 2017 00:26:37 +0800 Subject: [PATCH] Don't color recent items on which plugin is disabled --- action/recent.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action/recent.php b/action/recent.php index de6c591..e35bb01 100644 --- a/action/recent.php +++ b/action/recent.php @@ -41,6 +41,10 @@ function handle_recent(Doku_Event &$event, $param) { continue; } + if (!$this->hlp->isActive($id)) { + continue; + } + if ($this->hlp->isCurrentRevisionApproved($id)) { $event->data->_content[$parent]['class'] .= ' approved_revision'; } else {