mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-26 05:32:59 +00:00
Fix display of last modified time.
This commit is contained in:
parent
9e9ad02bd6
commit
380c9c0740
3 changed files with 3 additions and 3 deletions
|
@ -4273,7 +4273,7 @@ register_module([
|
||||||
if(isset($_GET["printable"]) and $_GET["printable"] === "yes")
|
if(isset($_GET["printable"]) and $_GET["printable"] === "yes")
|
||||||
exit(page_renderer::render_minimal($title, $content));
|
exit(page_renderer::render_minimal($title, $content));
|
||||||
// Normal page
|
// 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));
|
exit(page_renderer::render_main($title, $content));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Allows you to view pages. You really should include this one.",
|
"description": "Allows you to view pages. You really should include this one.",
|
||||||
"id": "page-view",
|
"id": "page-view",
|
||||||
"lastupdate": 1462015175,
|
"lastupdate": 1462015525,
|
||||||
"optional": false
|
"optional": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -115,7 +115,7 @@ register_module([
|
||||||
if(isset($_GET["printable"]) and $_GET["printable"] === "yes")
|
if(isset($_GET["printable"]) and $_GET["printable"] === "yes")
|
||||||
exit(page_renderer::render_minimal($title, $content));
|
exit(page_renderer::render_minimal($title, $content));
|
||||||
// Normal page
|
// 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));
|
exit(page_renderer::render_main($title, $content));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue