mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33:00 +00:00
Add moar docblock comments
This commit is contained in:
parent
b6eda24ada
commit
707d1c6853
3 changed files with 10 additions and 2 deletions
|
@ -396,7 +396,7 @@ if($settings->sessionprefix == "auto")
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
/** The version of Pepperminty Wiki currently running. */
|
/** The version of Pepperminty Wiki currently running. */
|
||||||
$version = "v0.17-dev";
|
$version = "v0.17-dev";
|
||||||
$commit = "f7f408280f0309e628099c4ba0f0cc59856742f7";
|
$commit = "b6eda24adaf3607cf3437be0b8419215b52d662b";
|
||||||
/// Environment ///
|
/// Environment ///
|
||||||
/** Holds information about the current request environment. */
|
/** Holds information about the current request environment. */
|
||||||
$env = new stdClass();
|
$env = new stdClass();
|
||||||
|
|
|
@ -536,7 +536,12 @@ DIFFSCRIPT;
|
||||||
. "</p>");
|
. "</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) {
|
function generate_page_hash($page_data) {
|
||||||
return sha1($page_data);
|
return sha1($page_data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,6 +159,9 @@ register_module([
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Recalculates and updates the password hashing cost.
|
||||||
|
*/
|
||||||
function do_password_hash_code_update() {
|
function do_password_hash_code_update() {
|
||||||
global $settings, $paths;
|
global $settings, $paths;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue