mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Update build
This commit is contained in:
parent
5f360a422d
commit
48ebd5ebfe
2 changed files with 6 additions and 2 deletions
|
@ -1328,6 +1328,8 @@ register_module([
|
|||
|
||||
// Construct a new entry for the pageindex
|
||||
$entry = new stdClass();
|
||||
// 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();
|
||||
|
@ -1335,6 +1337,8 @@ register_module([
|
|||
$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
|
||||
|
|
|
@ -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
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue