1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-26 05:32:59 +00:00

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

View file

@ -71,6 +71,8 @@ register_module([
page_renderer::register_part_preprocessor(function(&$parts) { page_renderer::register_part_preprocessor(function(&$parts) {
global $env; 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"; $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); $start_time = microtime(true);