diff --git a/build/index.php b/build/index.php index fcafc34..7d27f19 100644 --- a/build/index.php +++ b/build/index.php @@ -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') . ".

\n

"; // 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) . ".

\n

"; // Add the last edited time to the footer exit(page_renderer::render_main($title, $content)); }); } diff --git a/module_index.json b/module_index.json index 3fe4035..c672292 100644 --- a/module_index.json +++ b/module_index.json @@ -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 }, { diff --git a/modules/page-view.php b/modules/page-view.php index 85640af..4c821bb 100644 --- a/modules/page-view.php +++ b/modules/page-view.php @@ -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') . ".

\n

"; // 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) . ".

\n

"; // Add the last edited time to the footer exit(page_renderer::render_main($title, $content)); }); }