mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Bugfix: Fix undefined index in page view
This commit is contained in:
parent
7a5ba69ea8
commit
cb75928bd0
3 changed files with 8 additions and 6 deletions
|
@ -4832,7 +4832,7 @@ register_module([
|
|||
|
||||
register_module([
|
||||
"name" => "Page viewer",
|
||||
"version" => "0.16.2",
|
||||
"version" => "0.16.4",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Allows you to view pages. You really should include this one.",
|
||||
"id" => "page-view",
|
||||
|
@ -4980,7 +4980,8 @@ register_module([
|
|||
|
||||
$settings->footer_message = "Last edited at " . date('h:ia T \o\n j F Y', $pageindex->{$env->page}->lastmodified) . ".</p>\n<p>" . $settings->footer_message; // Add the last edited time to the footer
|
||||
|
||||
switch(strtolower(trim($_GET["mode"])))
|
||||
$mode = isset($_GET["mode"]) ? strtolower(trim($_GET["mode"])) : "normal";
|
||||
switch($mode)
|
||||
{
|
||||
case "contentonly":
|
||||
// Content only mode: Send only the content of the page
|
||||
|
|
|
@ -190,11 +190,11 @@
|
|||
},
|
||||
{
|
||||
"name": "Page viewer",
|
||||
"version": "0.16.2",
|
||||
"version": "0.16.4",
|
||||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Allows you to view pages. You really should include this one.",
|
||||
"id": "page-view",
|
||||
"lastupdate": 1476815055,
|
||||
"lastupdate": 1476815512,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
register_module([
|
||||
"name" => "Page viewer",
|
||||
"version" => "0.16.2",
|
||||
"version" => "0.16.4",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Allows you to view pages. You really should include this one.",
|
||||
"id" => "page-view",
|
||||
|
@ -149,7 +149,8 @@ register_module([
|
|||
|
||||
$settings->footer_message = "Last edited at " . date('h:ia T \o\n j F Y', $pageindex->{$env->page}->lastmodified) . ".</p>\n<p>" . $settings->footer_message; // Add the last edited time to the footer
|
||||
|
||||
switch(strtolower(trim($_GET["mode"])))
|
||||
$mode = isset($_GET["mode"]) ? strtolower(trim($_GET["mode"])) : "normal";
|
||||
switch($mode)
|
||||
{
|
||||
case "contentonly":
|
||||
// Content only mode: Send only the content of the page
|
||||
|
|
Loading…
Reference in a new issue