mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-26 02:55:02 +00:00
Improve the last edited message in the footer.
This commit is contained in:
parent
51b37ee55b
commit
8f7a111b48
3 changed files with 3 additions and 3 deletions
|
@ -5392,7 +5392,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>" . $settings->footer_message; // Add the last edited time to the footer
|
||||
$settings->footer_message = "$env->page was last edited by {$pageindex->{$env->page}->lasteditor} 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
|
||||
|
||||
$mode = isset($_GET["mode"]) ? strtolower(trim($_GET["mode"])) : "normal";
|
||||
switch($mode)
|
||||
|
|
|
@ -212,7 +212,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Allows you to view pages. You really should include this one.",
|
||||
"id": "page-view",
|
||||
"lastupdate": 1478463906,
|
||||
"lastupdate": 1482008209,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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>" . $settings->footer_message; // Add the last edited time to the footer
|
||||
$settings->footer_message = "$env->page was last edited by {$pageindex->{$env->page}->lasteditor} 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
|
||||
|
||||
$mode = isset($_GET["mode"]) ? strtolower(trim($_GET["mode"])) : "normal";
|
||||
switch($mode)
|
||||
|
|
Loading…
Reference in a new issue