Add moar docblock comments

This commit is contained in:
Starbeamrainbowlabs 2018-05-25 12:07:51 +01:00
parent b6eda24ada
commit 707d1c6853
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
3 changed files with 10 additions and 2 deletions

View File

@ -396,7 +396,7 @@ if($settings->sessionprefix == "auto")
/////////////////////////////////////////////////////////////////////////////
/** The version of Pepperminty Wiki currently running. */
$version = "v0.17-dev";
$commit = "f7f408280f0309e628099c4ba0f0cc59856742f7";
$commit = "b6eda24adaf3607cf3437be0b8419215b52d662b";
/// Environment ///
/** Holds information about the current request environment. */
$env = new stdClass();

View File

@ -536,7 +536,12 @@ DIFFSCRIPT;
. "</p>");
}
]);
/**
* Generates a unique hash of a page's content for edit conflict detection
* purposes.
* @param string $page_data The page text to hash.
* @return string A hash of the given page text.
*/
function generate_page_hash($page_data) {
return sha1($page_data);
}

View File

@ -159,6 +159,9 @@ register_module([
}
]);
/**
* Recalculates and updates the password hashing cost.
*/
function do_password_hash_code_update() {
global $settings, $paths;