From 5f360a422db2c70274e029ab9c8f9676a5d7703d Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 22 Oct 2015 08:41:01 +0100 Subject: [PATCH] Add extra comments. --- modules/feature-upload.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/feature-upload.php b/modules/feature-upload.php index 075ce9d..4ce9b02 100644 --- a/modules/feature-upload.php +++ b/modules/feature-upload.php @@ -110,13 +110,17 @@ register_module([ // Construct a new entry for the pageindex $entry = new stdClass(); - $entry->filename = $new_description_filename; + // Point to the description's filepath since this property + // should point to a markdown file + $entry->filename = $new_description_filename; $entry->size = strlen($description); $entry->lastmodified = time(); $entry->lasteditor = $env->user; $entry->uploadedfile = true; $entry->uploadedfilepath = $new_filename; // 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; // Save the pageindex