From 707d1c685355e1bfb47cda80e7cadb8615f5809d Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 25 May 2018 12:07:51 +0100 Subject: [PATCH] Add moar docblock comments --- build/index.php | 2 +- modules/page-edit.php | 7 ++++++- modules/page-login.php | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/build/index.php b/build/index.php index 28594a6..792f2f0 100644 --- a/build/index.php +++ b/build/index.php @@ -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(); diff --git a/modules/page-edit.php b/modules/page-edit.php index 2b65da6..fe9b35c 100644 --- a/modules/page-edit.php +++ b/modules/page-edit.php @@ -536,7 +536,12 @@ DIFFSCRIPT; . "

"); } ]); - +/** + * 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); } diff --git a/modules/page-login.php b/modules/page-login.php index 87b541a..c0115f0 100644 --- a/modules/page-login.php +++ b/modules/page-login.php @@ -159,6 +159,9 @@ register_module([ } ]); +/** + * Recalculates and updates the password hashing cost. + */ function do_password_hash_code_update() { global $settings, $paths;