diff --git a/build/index.php b/build/index.php index f4f8836..a432a22 100644 --- a/build/index.php +++ b/build/index.php @@ -1328,13 +1328,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 diff --git a/module_index.json b/module_index.json index c5b3b97..4cc1bcf 100644 --- a/module_index.json +++ b/module_index.json @@ -50,7 +50,7 @@ "author": "Starbeamrainbowlabs", "description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File:' prefix.", "id": "feature-upload", - "lastupdate": 1445499493, + "lastupdate": 1445499647, "optional": false }, {