Bugfix: Only show similar page suggestions if we're on the view action

This commit is contained in:
Starbeamrainbowlabs 2020-06-04 01:15:10 +01:00
parent 05ed7fa5c5
commit 90a2a3f6c6
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ register_module([
page_renderer::register_part_preprocessor(function(&$parts) {
global $env;
if($env->action !== "view")
return;
$html = "<aside class='similar-page-suggestions'><h2>Other pages to explore</h2>\n\t\t<ul class='similar-page-suggestions-list'>\n";
$start_time = microtime(true);