1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 17:23:00 +00:00

Add extra comments.

This commit is contained in:
Starbeamrainbowlabs 2015-10-22 08:41:01 +01:00
parent 02d4659a32
commit 5f360a422d

View file

@ -110,6 +110,8 @@ register_module([
// Construct a new entry for the pageindex // Construct a new entry for the pageindex
$entry = new stdClass(); $entry = new stdClass();
// Point to the description's filepath since this property
// should point to a markdown file
$entry->filename = $new_description_filename; $entry->filename = $new_description_filename;
$entry->size = strlen($description); $entry->size = strlen($description);
$entry->lastmodified = time(); $entry->lastmodified = time();
@ -117,6 +119,8 @@ register_module([
$entry->uploadedfile = true; $entry->uploadedfile = true;
$entry->uploadedfilepath = $new_filename; $entry->uploadedfilepath = $new_filename;
// Add the new entry to the pageindex // Add the new entry to the pageindex
// Assign the new entry to the image's filepath as that
// should be the page name.
$pageindex->$new_filename = $entry; $pageindex->$new_filename = $entry;
// Save the pageindex // Save the pageindex