From 90a2a3f6c688bb6d3c3c6277a24401248de0b468 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 4 Jun 2020 01:15:10 +0100 Subject: [PATCH] Bugfix: Only show similar page suggestions if we're on the view action --- modules/feature-similarpages.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/feature-similarpages.php b/modules/feature-similarpages.php index 687b25d..fbf6ea7 100644 --- a/modules/feature-similarpages.php +++ b/modules/feature-similarpages.php @@ -71,6 +71,8 @@ register_module([ page_renderer::register_part_preprocessor(function(&$parts) { global $env; + if($env->action !== "view") + return; $html = "