mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-29 06:23:01 +00:00
Bugfix: Only show similar page suggestions if we're on the view action
This commit is contained in:
parent
05ed7fa5c5
commit
90a2a3f6c6
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue