1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 17:23:00 +00:00

Revise $path integration in move logic. Fixes #32

This commit is contained in:
Starbeamrainbowlabs 2015-11-11 18:29:26 +00:00
parent 6217cbb6c0
commit bf2da0b28c
3 changed files with 3 additions and 3 deletions

View file

@ -2954,7 +2954,7 @@ register_module([
// Move the file on disk
rename($env->storage_prefix . $env->page, $env->storage_prefix . $new_name);
}
file_put_contents("./pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT));
file_put_contents($env->storage_prefix . "pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT));
//move the page on the disk
rename("$env->storage_prefix$env->page.md", "$env->storage_prefix$new_name.md");

View file

@ -140,7 +140,7 @@
"author": "Starbeamrainbowlabs",
"description": "Adds an action to allow administrators to move pages.",
"id": "page-move",
"lastupdate": 1447017276,
"lastupdate": 1447266379,
"optional": false
},
{

View file

@ -64,7 +64,7 @@ register_module([
// Move the file on disk
rename($env->storage_prefix . $env->page, $env->storage_prefix . $new_name);
}
file_put_contents("./pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT));
file_put_contents($env->storage_prefix . "pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT));
//move the page on the disk
rename("$env->storage_prefix$env->page.md", "$env->storage_prefix$new_name.md");