1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-26 05:32:59 +00:00

Bugfix find_revisionid_timestamp

This commit is contained in:
Starbeamrainbowlabs 2019-01-24 20:51:23 +00:00
parent 0ec1424d35
commit 33153094b1
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 8 additions and 4 deletions

View file

@ -409,7 +409,7 @@ if($settings->sessionprefix == "auto")
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
/** The version of Pepperminty Wiki currently running. */ /** The version of Pepperminty Wiki currently running. */
$version = "v0.18-dev"; $version = "v0.18-dev";
$commit = "96b632ff561fd14baa263f0156a455340796dc41"; $commit = "bed21da43690f586e36b1e754431ac3be3682fc2";
/// Environment /// /// Environment ///
/** Holds information about the current request environment. */ /** Holds information about the current request environment. */
$env = new stdClass(); $env = new stdClass();
@ -3937,7 +3937,9 @@ function render_recent_changes($recent_changes)
* @param int $timestamap The timestamp at which the revision was saved. * @param int $timestamap The timestamp at which the revision was saved.
* @return int The revision number of the given page at the given time. * @return int The revision number of the given page at the given time.
*/ */
function find_revisionid_timestamp($pagename, $timestamap) { function find_revisionid_timestamp($pagename, $timestamp) {
global $pageindex;
if(!isset($pageindex->$pagename) || !isset($pageindex->$pagename->history)) if(!isset($pageindex->$pagename) || !isset($pageindex->$pagename->history))
return null; return null;

View file

@ -95,7 +95,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds recent changes. Access through the 'recent-changes' action.", "description": "Adds recent changes. Access through the 'recent-changes' action.",
"id": "feature-recent-changes", "id": "feature-recent-changes",
"lastupdate": 1548362686, "lastupdate": 1548363014,
"optional": false "optional": false
}, },
{ {

View file

@ -251,7 +251,9 @@ function render_recent_changes($recent_changes)
* @param int $timestamap The timestamp at which the revision was saved. * @param int $timestamap The timestamp at which the revision was saved.
* @return int The revision number of the given page at the given time. * @return int The revision number of the given page at the given time.
*/ */
function find_revisionid_timestamp($pagename, $timestamap) { function find_revisionid_timestamp($pagename, $timestamp) {
global $pageindex;
if(!isset($pageindex->$pagename) || !isset($pageindex->$pagename->history)) if(!isset($pageindex->$pagename) || !isset($pageindex->$pagename->history))
return null; return null;