mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33:00 +00:00
parent
446ca98c23
commit
b168dbb811
3 changed files with 5 additions and 3 deletions
|
@ -4386,6 +4386,7 @@ register_module([
|
|||
// We have a revision number!
|
||||
$isHistoryRevision = true;
|
||||
$revisionNumber = intval($_GET["revision"]);
|
||||
$revisionData = $pageindex->{$env->page}->history[$revisionNumber];
|
||||
|
||||
// Make sure that the revision exists for later on
|
||||
if(!isset($pageindex->{$env->page}->history[$revisionNumber]))
|
||||
|
@ -4405,7 +4406,7 @@ register_module([
|
|||
else
|
||||
{
|
||||
$content .= "<h1>Revision #$revisionNumber of $env->page</h1>\n";
|
||||
$content .= "<p class='revision-note'><em>(<a href='?page=" . rawurlencode($env->page) . "'>See current</a>)</em></p>\n";
|
||||
$content .= "<p class='revision-note'><em>(Revision created by $revisionData->editor " . render_rchange_timestamp($revisionData->timestamp) . ". <a href='?page=" . rawurlencode($env->page) . "'>Jump to the current revision</a>.)</em></p>\n";
|
||||
}
|
||||
|
||||
// Add an extra message if the requester was redirected from another page
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Allows you to view pages. You really should include this one.",
|
||||
"id": "page-view",
|
||||
"lastupdate": 1465063952,
|
||||
"lastupdate": 1465066305,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -59,6 +59,7 @@ register_module([
|
|||
// We have a revision number!
|
||||
$isHistoryRevision = true;
|
||||
$revisionNumber = intval($_GET["revision"]);
|
||||
$revisionData = $pageindex->{$env->page}->history[$revisionNumber];
|
||||
|
||||
// Make sure that the revision exists for later on
|
||||
if(!isset($pageindex->{$env->page}->history[$revisionNumber]))
|
||||
|
@ -78,7 +79,7 @@ register_module([
|
|||
else
|
||||
{
|
||||
$content .= "<h1>Revision #$revisionNumber of $env->page</h1>\n";
|
||||
$content .= "<p class='revision-note'><em>(<a href='?page=" . rawurlencode($env->page) . "'>See current</a>)</em></p>\n";
|
||||
$content .= "<p class='revision-note'><em>(Revision created by $revisionData->editor " . render_rchange_timestamp($revisionData->timestamp) . ". <a href='?page=" . rawurlencode($env->page) . "'>Jump to the current revision</a>.)</em></p>\n";
|
||||
}
|
||||
|
||||
// Add an extra message if the requester was redirected from another page
|
||||
|
|
Loading…
Reference in a new issue