From 48ebd5ebfe0bb0c79fb42a8a222db18664744b02 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 22 Oct 2015 08:41:07 +0100 Subject: [PATCH] Update build --- build/index.php | 6 +++++- module_index.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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 }, {