Fix display of last modified time.

This commit is contained in:
Starbeamrainbowlabs 2016-04-30 12:25:50 +01:00
parent 9e9ad02bd6
commit 380c9c0740
3 changed files with 3 additions and 3 deletions

View File

@ -4273,7 +4273,7 @@ register_module([
if(isset($_GET["printable"]) and $_GET["printable"] === "yes")
exit(page_renderer::render_minimal($title, $content));
// Normal page
$settings->footer_message = "Last edited at " . date('h:ia T \o\n j F Y') . ".</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>"; // Add the last edited time to the footer
exit(page_renderer::render_main($title, $content));
});
}

View File

@ -176,7 +176,7 @@
"author": "Starbeamrainbowlabs",
"description": "Allows you to view pages. You really should include this one.",
"id": "page-view",
"lastupdate": 1462015175,
"lastupdate": 1462015525,
"optional": false
},
{

View File

@ -115,7 +115,7 @@ register_module([
if(isset($_GET["printable"]) and $_GET["printable"] === "yes")
exit(page_renderer::render_minimal($title, $content));
// Normal page
$settings->footer_message = "Last edited at " . date('h:ia T \o\n j F Y') . ".</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>"; // Add the last edited time to the footer
exit(page_renderer::render_main($title, $content));
});
}