From 19c4e36754378be75e3c7c0b2f6108af66fdff7a Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 22 Oct 2015 09:03:31 +0100 Subject: [PATCH] Add upload=success url paramter to later --- build/index.php | 2 +- module_index.json | 2 +- modules/feature-upload.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/index.php b/build/index.php index 82a2019..2c70745 100644 --- a/build/index.php +++ b/build/index.php @@ -1347,7 +1347,7 @@ register_module([ // Save the pageindex file_put_contents("pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT)); - header("location: ?action=view&page=$new_filename"); + header("location: ?action=view&page=$new_filename&upload=success"); break; } diff --git a/module_index.json b/module_index.json index 55ccbf1..6f0e0d5 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": 1445500627, + "lastupdate": 1445500988, "optional": false }, { diff --git a/modules/feature-upload.php b/modules/feature-upload.php index 3d998b5..2f2f364 100644 --- a/modules/feature-upload.php +++ b/modules/feature-upload.php @@ -126,7 +126,7 @@ register_module([ // Save the pageindex file_put_contents("pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT)); - header("location: ?action=view&page=$new_filename"); + header("location: ?action=view&page=$new_filename&upload=success"); break; }