Bugfix: Always display the footer message at the bottom of the page.

This commit is contained in:
Starbeamrainbowlabs 2016-10-09 11:18:03 +01:00
parent 73a09e8365
commit 4dffd8d1cd
4 changed files with 7 additions and 6 deletions

View File

@ -13,6 +13,7 @@
### Fixed
- The login session lifetime is now configurable (defaults to 24 hours), so you won't keep getting logged out all the time (in theory). (#113)
- Recent changes made on different days are now displayed separately, as they should be (#112)
- Always display footer message at the bottom of the page.
- Fxed huge issue with `contentonly` display mode.
## v0.12.1

View File

@ -4767,7 +4767,7 @@ register_module([
register_module([
"name" => "Page viewer",
"version" => "0.16.1",
"version" => "0.16.2",
"author" => "Starbeamrainbowlabs",
"description" => "Allows you to view pages. You really should include this one.",
"id" => "page-view",
@ -4913,7 +4913,7 @@ register_module([
time() - $pageindex->{$env->page}->lastmodified < $settings->delayed_indexing_time)
header("x-robots-tag: noindex");
$settings->footer_message = "Last edited at " . date('h:ia T \o\n j F Y', $pageindex->{$env->page}->lastmodified) . ".</p>\n<p>"; // Add the last edited time to the footer
$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"])))
{

View File

@ -181,11 +181,11 @@
},
{
"name": "Page viewer",
"version": "0.16.1",
"version": "0.16.2",
"author": "Starbeamrainbowlabs",
"description": "Allows you to view pages. You really should include this one.",
"id": "page-view",
"lastupdate": 1476813024,
"lastupdate": 1476813955,
"optional": false
},
{

View File

@ -1,7 +1,7 @@
<?php
register_module([
"name" => "Page viewer",
"version" => "0.16.1",
"version" => "0.16.2",
"author" => "Starbeamrainbowlabs",
"description" => "Allows you to view pages. You really should include this one.",
"id" => "page-view",
@ -147,7 +147,7 @@ register_module([
time() - $pageindex->{$env->page}->lastmodified < $settings->delayed_indexing_time)
header("x-robots-tag: noindex");
$settings->footer_message = "Last edited at " . date('h:ia T \o\n j F Y', $pageindex->{$env->page}->lastmodified) . ".</p>\n<p>"; // Add the last edited time to the footer
$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"])))
{